Exception: OpsWorks::Errors::StackInFatalState
- Inherits:
-
StandardError
- Object
- StandardError
- OpsWorks::Errors::StackInFatalState
- Defined in:
- lib/opsworks/errors.rb
Instance Attribute Summary collapse
-
#instances ⇒ Object
readonly
Returns the value of attribute instances.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(stack, instances) ⇒ StackInFatalState
constructor
A new instance of StackInFatalState.
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
#instances ⇒ Object (readonly)
Returns the value of attribute instances.
4 5 6 |
# File 'lib/opsworks/errors.rb', line 4 def instances @instances end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
4 5 6 |
# File 'lib/opsworks/errors.rb', line 4 def stack @stack end |