Method: Chef::CookbookVersion#initialize
- Defined in:
- lib/chef/cookbook_version.rb
#initialize(name, *root_paths, chef_server_rest: nil) ⇒ CookbookVersion
Creates a new Chef::CookbookVersion object.
Returns
- object<Chef::CookbookVersion>
-
Duh. :)
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/chef/cookbook_version.rb', line 94 def initialize(name, *root_paths, chef_server_rest: nil) @name = name @root_paths = root_paths @frozen = false @all_files = [] @file_vendor = nil @cookbook_manifest = Chef::CookbookManifest.new(self) @metadata = Chef::Cookbook::Metadata.new @chef_server_rest = chef_server_rest end |