Method: Chef::RunContext#loaded_attribute

Defined in:
lib/chef/run_context.rb

#loaded_attribute(cookbook, attribute_file) ⇒ Object

Mark a given attribute file as having been loaded.

Parameters:

  • cookbook (String)

    Cookbook name.

  • attribute_file (String)

    Attribute file name.



559
560
561
# File 'lib/chef/run_context.rb', line 559

def loaded_attribute(cookbook, attribute_file)
  loaded_attributes_hash["#{cookbook}::#{attribute_file}"] = true
end