Method: Chef::Formatters::Base#deprecation

Defined in:
lib/chef/formatters/base.rb

#deprecation(deprecation, _location = nil) ⇒ Object

Log a deprecation warning object.

Parameters:

  • deprecation (Chef::Deprecated::Base)

    Deprecation object to log. In previous versions, this could be a string. Don’t do that anymore.

  • location (Object)

    Unused, present only for compatibility.



219
220
221
# File 'lib/chef/formatters/base.rb', line 219

def deprecation(deprecation, _location = nil)
  Chef::Log.deprecation(deprecation.to_s) unless deprecation.silenced?
end