Exception: Berkshelf::ConfigNotFound
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::ConfigNotFound
- Defined in:
- lib/berkshelf/errors.rb
Overview
Raised when a cookbook or its recipes contain a space or invalid character in the path.
Instance Method Summary collapse
-
#initialize(type, path) ⇒ ConfigNotFound
constructor
A new instance of ConfigNotFound.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(type, path) ⇒ ConfigNotFound
Returns a new instance of ConfigNotFound.
392 393 394 395 |
# File 'lib/berkshelf/errors.rb', line 392 def initialize(type, path) @type = type.to_s @path = path end |
Instance Method Details
#to_s ⇒ Object Also known as: message
397 398 399 |
# File 'lib/berkshelf/errors.rb', line 397 def to_s "No #{@type.capitalize} config file found at: '#{@path}'!" end |