Exception: Clearbooks::CookbookNotFound
- Inherits:
-
ClearbooksError
- Object
- StandardError
- ClearbooksError
- Clearbooks::CookbookNotFound
- Defined in:
- lib/clearbooks/error/errors.rb
Instance Method Summary collapse
-
#initialize(name, version, location) ⇒ CookbookNotFound
constructor
A new instance of CookbookNotFound.
- #to_s ⇒ Object
Methods inherited from ClearbooksError
Constructor Details
#initialize(name, version, location) ⇒ CookbookNotFound
Returns a new instance of CookbookNotFound.
44 45 46 47 48 |
# File 'lib/clearbooks/error/errors.rb', line 44 def initialize(name, version, location) @name = name @version = version @location = location end |
Instance Method Details
#to_s ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/clearbooks/error/errors.rb', line 50 def to_s if @version "Cookbook '#{@name}' (#{@version}) not found #{@location}!" else "Cookbook '#{@name}' not found #{@location}!" end end |