Module: CMDx::Deprecators::Log Private

Extended by:
Log
Included in:
Log
Defined in:
lib/cmdx/deprecators/log.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Writes a ‘warn`-level entry to the task’s logger noting the deprecation. Execution proceeds; useful for gradual migration where you want observability without breaking callers.

Instance Method Summary collapse

Instance Method Details

#call(task) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:



16
17
18
# File 'lib/cmdx/deprecators/log.rb', line 16

def call(task)
  task.logger.warn { "DEPRECATED: #{task.class} - migrate to a replacement or discontinue use" }
end