Method: Chef::RunContext::CookbookCompiler#compile_attributes

Defined in:
lib/chef/run_context/cookbook_compiler.rb

#compile_attributesObject

Loads attributes files from cookbooks. Attributes files are loaded according to #cookbook_order; within a cookbook, default.rb is loaded first, then the remaining attributes files in lexical sort order.



194
195
196
197
198
199
200
# File 'lib/chef/run_context/cookbook_compiler.rb', line 194

def compile_attributes
  events.attribute_load_start(count_files_by_segment(:attributes, "attributes.rb"))
  cookbook_order.each do |cookbook|
    load_attributes_from_cookbook(cookbook)
  end
  events.attribute_load_complete
end