Exception: Berkshelf::NotACookbook
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::NotACookbook
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ NotACookbook
constructor
A new instance of NotACookbook.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(path) ⇒ NotACookbook
Returns a new instance of NotACookbook.
410 411 412 |
# File 'lib/berkshelf/errors.rb', line 410 def initialize(path) @path = File.(path) rescue path end |
Instance Method Details
#to_s ⇒ Object
414 415 416 417 |
# File 'lib/berkshelf/errors.rb', line 414 def to_s "The resource at '#{@path}' does not appear to be a valid cookbook. " \ "Does it have a metadata.rb?" end |