Exception: Berkshelf::EnvironmentNotFound

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(environment_name) ⇒ EnvironmentNotFound

Returns a new instance of EnvironmentNotFound.



275
276
277
# File 'lib/berkshelf/errors.rb', line 275

def initialize(environment_name)
  @environment_name = environment_name
end

Instance Method Details

#to_sObject



279
280
281
# File 'lib/berkshelf/errors.rb', line 279

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