Exception: Berkshelf::EnvironmentNotFound
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::EnvironmentNotFound
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(environment_name) ⇒ EnvironmentNotFound
constructor
A new instance of EnvironmentNotFound.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(environment_name) ⇒ EnvironmentNotFound
Returns a new instance of EnvironmentNotFound.
288 289 290 |
# File 'lib/berkshelf/errors.rb', line 288 def initialize(environment_name) @environment_name = environment_name end |
Instance Method Details
#to_s ⇒ Object
292 293 294 |
# File 'lib/berkshelf/errors.rb', line 292 def to_s "The environment '#{@environment_name}' does not exist" end |