Exception: Fox::CookbookNotFound

Inherits:
FoxError
  • Object
show all
Defined in:
lib/fox/error/errors.rb

Instance Method Summary collapse

Methods inherited from FoxError

status_code

Constructor Details

#initialize(name, version, location) ⇒ CookbookNotFound

Returns a new instance of CookbookNotFound.



43
44
45
46
47
# File 'lib/fox/error/errors.rb', line 43

def initialize(name, version, location)
  @name     = name
  @version  = version
  @location = location
end

Instance Method Details

#to_sObject



49
50
51
52
53
54
55
# File 'lib/fox/error/errors.rb', line 49

def to_s
  if @version
    "Cookbook '#{@name}' (#{@version}) not found #{@location}!"
  else
    "Cookbook '#{@name}' not found #{@location}!"
  end
end