Exception: DreamOps::NoRunningInstancesError

Inherits:
DreamOpsError
  • Object
show all
Defined in:
lib/dream-ops/errors.rb

Instance Method Summary collapse

Methods inherited from DreamOpsError

set_status_code

Constructor Details

#initialize(stack) ⇒ NoRunningInstancesError

Returns a new instance of NoRunningInstancesError.



17
18
19
# File 'lib/dream-ops/errors.rb', line 17

def initialize(stack)
  @stack = stack
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/dream-ops/errors.rb', line 21

def to_s
  "Stack \"#{@stack.name}\" has no running instances."
end