Exception: Chef::Exceptions::MetadataNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(install_path, cookbook_name) ⇒ MetadataNotFound

Returns a new instance of MetadataNotFound.



208
209
210
211
212
# File 'lib/chef/exceptions.rb', line 208

def initialize(install_path, cookbook_name)
  @install_path = install_path
  @cookbook_name = cookbook_name
  super "No metadata.rb or metadata.json found for cookbook #{@cookbook_name} in #{@install_path}"
end

Instance Attribute Details

#cookbook_nameObject (readonly)

Returns the value of attribute cookbook_name.



206
207
208
# File 'lib/chef/exceptions.rb', line 206

def cookbook_name
  @cookbook_name
end

#install_pathObject (readonly)

Returns the value of attribute install_path.



205
206
207
# File 'lib/chef/exceptions.rb', line 205

def install_path
  @install_path
end