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.



302
303
304
# File 'lib/berkshelf/errors.rb', line 302

def initialize(environment_name)
  @environment_name = environment_name
end

Instance Method Details

#to_sObject Also known as: message



306
307
308
# File 'lib/berkshelf/errors.rb', line 306

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