chef/lib/chef/run_context.rb
# Used to load the node's recipes after expanding its run list
Used to load the node's recipes after expanding its run list
Used to load the node ' s recipes after expanding its run list
def load_lwrp_providers
      foreach_cookbook_load_segment(:providers) do |cookbook_name, filename|
        begin
          Chef::Log.debug("Loading cookbook #{cookbook_name}'s providers from #{filename}")
          Chef::Provider.build_from_file(cookbook_name, filename, self)
          @events.lwrp_file_loaded(filename)
        rescue Exception => e
          @events.lwrp_file_load_failed(filename, e)
          raise
        end
      end
    end
def load_lwrp_providers foreach_cookbook_load_segment ( :providers ) do | cookbook_name , filename | begin Chef :: Log . debug ( "Loading cookbook #{cookbook_name}'s providers from #{filename}" ) Chef :: Provider . build_from_file ( cookbook_name , filename , self ) @events . lwrp_file_loaded ( filename ) rescue Exception => e @events . lwrp_file_load_failed ( filename , e ) raise end end end
Used to load the node's recipes after expanding its run list
Used to load the node ' s recipes after expanding its run list
# TODO: wrap exception with helpful info