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.



201
202
203
204
205
# File 'lib/chef/exceptions.rb', line 201

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.



200
201
202
# File 'lib/chef/exceptions.rb', line 200

def cookbook_name
  @cookbook_name
end

#install_pathObject (readonly)

Returns the value of attribute install_path.



199
200
201
# File 'lib/chef/exceptions.rb', line 199

def install_path
  @install_path
end