Method: Chef::ResourceResolver#resolve

Defined in:
lib/chef/resource_resolver.rb

#resolveObject



71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/chef/resource_resolver.rb', line 71

def resolve
  # log this so we know what resources will work for the generic resource on the node (early cut)
  Chef::Log.trace "Resources for generic #{resource_name} resource enabled on node include: #{prioritized_handlers}"

  handler = prioritized_handlers.first

  if handler
    Chef::Log.trace "Resource for #{resource_name} is #{handler}"
  else
    Chef::Log.trace "Dynamic resource resolver FAILED to resolve a resource for #{resource_name}"
  end

  handler
end