Method: Chef::Provider.action_description

Defined in:
lib/chef/provider.rb

.action_description(action) ⇒ String

Retrieve the description for a provider’s action, if any description has been included in the definition.

was defined

Parameters:

Returns:

  • (String)

    the description of the action provided, or nil if no description



89
90
91
92
93
94
95
# File 'lib/chef/provider.rb', line 89

def self.action_description(action)
  description = action_descriptions[action.to_sym]
  if description.nil? && superclass.respond_to?(:action_description)
    description = superclass.action_description(action)
  end
  description
end