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.
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_name ⇒ Object (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_path ⇒ Object (readonly)
Returns the value of attribute install_path.
205 206 207 |
# File 'lib/chef/exceptions.rb', line 205 def install_path @install_path end |