Exception: OpsWorks::Errors::StackInFatalState

Inherits:
StandardError
  • Object
show all
Defined in:
lib/opsworks/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stack, instances) ⇒ StackInFatalState

Returns a new instance of StackInFatalState.



6
7
8
9
10
11
# File 'lib/opsworks/errors.rb', line 6

def initialize(stack, instances)
  @stack = stack
  @instances = instances
  names = instances.map(&:hostname).join(' ')
  super("Instances entered a fatal state on #{stack.name}: #{names}")
end

Instance Attribute Details

#instancesObject (readonly)

Returns the value of attribute instances.



4
5
6
# File 'lib/opsworks/errors.rb', line 4

def instances
  @instances
end

#stackObject (readonly)

Returns the value of attribute stack.



4
5
6
# File 'lib/opsworks/errors.rb', line 4

def stack
  @stack
end