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.



288
289
290
# File 'lib/berkshelf/errors.rb', line 288

def initialize(environment_name)
  @environment_name = environment_name
end

Instance Method Details

#to_sObject



292
293
294
# File 'lib/berkshelf/errors.rb', line 292

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