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_libraries
      @events.library_load_start(count_files_by_segment(:libraries))
      foreach_cookbook_load_segment(:libraries) do |cookbook_name, filename|
        begin
          Chef::Log.debug("Loading cookbook #{cookbook_name}'s library file: #{filename}")
          Kernel.load(filename)
          @events.library_file_loaded(filename)
        rescue Exception => e
          @events.library_file_load_failed(filename, e)
          raise
        end
      end
      @events.library_load_complete
    end
def load_libraries @events . library_load_start ( count_files_by_segment ( :libraries ) ) foreach_cookbook_load_segment ( :libraries ) do | cookbook_name , filename | begin Chef :: Log . debug ( "Loading cookbook #{cookbook_name}'s library file: #{filename}" ) Kernel . load ( filename ) @events . library_file_loaded ( filename ) rescue Exception => e @events . library_file_load_failed ( filename , e ) raise end end @events . library_load_complete 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/munge exception to highlight syntax/name/no method errors.