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


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

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


197
198
199
# File 'lib/chef/exceptions.rb', line 197

def cookbook_name
  @cookbook_name
end

#install_pathObject (readonly)

Returns the value of attribute install_path


196
197
198
# File 'lib/chef/exceptions.rb', line 196

def install_path
  @install_path
end