Method: Chef::Exceptions::MetadataNotFound#initialize
- Defined in:
- lib/chef/exceptions.rb
#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 |