Exception: Berkshelf::EnvironmentNotFound

Inherits:
BerkshelfError show all
Defined in:
lib/berkshelf/errors.rb

Direct Known Subclasses

EnvironmentFileNotFound

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(environment_name) ⇒ EnvironmentNotFound

Returns a new instance of EnvironmentNotFound.



304
305
306
# File 'lib/berkshelf/errors.rb', line 304

def initialize(environment_name)
  @environment_name = environment_name
end

Instance Method Details

#to_sObject Also known as: message



308
309
310
# File 'lib/berkshelf/errors.rb', line 308

def to_s
  "The environment '#{@environment_name}' does not exist"
end