Method: Chef.get_provider_priority_array

Defined in:
lib/chef/chef_class.rb

.get_provider_priority_array(resource_name) ⇒ Array<Class>

Get the array of providers associated with a resource_name for the current node

Parameters:

  • resource_name (Symbol)

    name of the resource as a symbol

Returns:

  • (Array<Class>)

    Priority Array of Provider Classes to use for the resource_name on the node



71
72
73
74
75
# File 'lib/chef/chef_class.rb', line 71

def get_provider_priority_array(resource_name)
  result = provider_priority_map.get_priority_array(node, resource_name.to_sym)
  result = result.dup if result
  result
end