Method: Chef::ChefFS::FileSystem::ChefServer::VersionedCookbookDir#initialize
- Defined in:
- lib/chef/chef_fs/file_system/chef_server/versioned_cookbook_dir.rb
#initialize(name, parent, options = {}) ⇒ VersionedCookbookDir
Returns a new instance of VersionedCookbookDir.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/chef/chef_fs/file_system/chef_server/versioned_cookbook_dir.rb', line 30 def initialize(name, parent, = {}) super(name, parent) # If the name is apache2-1.0.0 and versioned_cookbooks is on, we know # the actual cookbook_name and version. if name =~ VALID_VERSIONED_COOKBOOK_NAME @cookbook_name = $1 @version = $2 else @exists = false end end |