Method: Chef::Cookbook::CookbookVersionLoader#initialize

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

#initialize(path, chefignore = nil) ⇒ CookbookVersionLoader

Returns a new instance of CookbookVersionLoader.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/chef/cookbook/cookbook_version_loader.rb', line 49

def initialize(path, chefignore = nil)
  @cookbook_path = File.expand_path( path ) # cookbook_path from which this was loaded

  @inferred_cookbook_name = File.basename( path )
  @chefignore = chefignore
   = nil
  @relative_path = %r{#{Regexp.escape(cookbook_path)}/(.+)$}
   = false
  @cookbook_settings = {
    all_files: {},
  }

   = []
   = nil
end