Module: StackMaster::StackStates
Constant Summary collapse
- SUCCESS_STATES =
%w[ CREATE_COMPLETE UPDATE_COMPLETE DELETE_COMPLETE ].freeze
- FAILURE_STATES =
%w[ CREATE_FAILED DELETE_FAILED UPDATE_ROLLBACK_FAILED ROLLBACK_FAILED ROLLBACK_COMPLETE ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE UPDATE_ROLLBACK_FAILED ].freeze
- FINISH_STATES =
(SUCCESS_STATES + FAILURE_STATES).freeze
Instance Method Summary collapse
Instance Method Details
#failure_state?(state) ⇒ Boolean
26 27 28 |
# File 'lib/stack_master/stack_states.rb', line 26 def failure_state?(state) FAILURE_STATES.include?(state) end |
#finish_state?(state) ⇒ Boolean
22 23 24 |
# File 'lib/stack_master/stack_states.rb', line 22 def finish_state?(state) FINISH_STATES.include?(state) end |
#success_state?(state) ⇒ Boolean
30 31 32 |
# File 'lib/stack_master/stack_states.rb', line 30 def success_state?(state) SUCCESS_STATES.include?(state) end |