Method: Chef::Cookbook::CookbookVersionLoader#load!

Defined in:
lib/chef/cookbook/cookbook_version_loader.rb

#load!Object

Load the cookbook. Raises an error if the cookbook_path given to the constructor doesn’t point to a valid cookbook.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/chef/cookbook/cookbook_version_loader.rb', line 67

def load!
   # force lazy evaluation to occur

  # re-raise any exception that occurred when reading the metadata
  

  load_all_files

  remove_ignored_files

  if empty?
    raise Exceptions::CookbookNotFoundInRepo, "The directory #{cookbook_path} does not contain a cookbook"
  end

  cookbook_settings
end