Exception: Berkshelf::BerksfileNotFound
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::BerksfileNotFound
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(filepath) ⇒ BerksfileNotFound
constructor
A new instance of BerksfileNotFound.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(filepath) ⇒ BerksfileNotFound
Returns a new instance of BerksfileNotFound.
25 26 27 |
# File 'lib/berkshelf/errors.rb', line 25 def initialize(filepath) @filepath = File.dirname(File.(filepath)) rescue filepath end |
Instance Method Details
#to_s ⇒ Object Also known as: message
29 30 31 |
# File 'lib/berkshelf/errors.rb', line 29 def to_s "No Berksfile or Berksfile.lock found at '#{@filepath}'!" end |