Method: Chef.log_deprecation

Defined in:
lib/chef/chef_class.rb

.log_deprecation(message, location = nil) ⇒ Object

Log a generic deprecation warning that doesn't have a specific class in Chef::Deprecated.

This should generally not be used, as the user will not be given a link to get more information on fixing the deprecation warning.

See Also:

  • #deprecated


235
236
237
238
# File 'lib/chef/chef_class.rb', line 235

def log_deprecation(message, location = nil)
  location ||= Chef::Log.caller_location
  Chef.deprecated(:generic, message, location)
end