Exception: Chef::Exceptions::MetadataNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Chef::Exceptions::MetadataNotFound
- Defined in:
- lib/chef/exceptions.rb
Instance Attribute Summary collapse
-
#cookbook_name ⇒ Object
readonly
Returns the value of attribute cookbook_name.
-
#install_path ⇒ Object
readonly
Returns the value of attribute install_path.
Instance Method Summary collapse
-
#initialize(install_path, cookbook_name) ⇒ MetadataNotFound
constructor
A new instance of MetadataNotFound.
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_name ⇒ Object (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_path ⇒ Object (readonly)
Returns the value of attribute install_path.
199 200 201 |
# File 'lib/chef/exceptions.rb', line 199 def install_path @install_path end |