Exception: Berkshelf::EnvironmentNotFound

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(environment_name) ⇒ EnvironmentNotFound

Returns a new instance of EnvironmentNotFound.



273
274
275
# File 'lib/berkshelf/errors.rb', line 273

def initialize(environment_name)
  @environment_name = environment_name
end

Instance Method Details

#to_sObject



277
278
279
# File 'lib/berkshelf/errors.rb', line 277

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