Module: Flow::Status
Instance Method Summary collapse
- #failed? ⇒ Boolean
- #pending? ⇒ Boolean
- #reverted? ⇒ Boolean
- #success? ⇒ Boolean
- #triggered? ⇒ Boolean
Instance Method Details
#failed? ⇒ Boolean
20 21 22 |
# File 'lib/flow/flow/status.rb', line 20 def failed? triggered? && !success? end |
#pending? ⇒ Boolean
8 9 10 |
# File 'lib/flow/flow/status.rb', line 8 def pending? executed_operations.none? end |
#reverted? ⇒ Boolean
24 25 26 |
# File 'lib/flow/flow/status.rb', line 24 def reverted? rewound_operations.any? end |
#success? ⇒ Boolean
16 17 18 |
# File 'lib/flow/flow/status.rb', line 16 def success? triggered? && (operation_instances - executed_operations).none? end |
#triggered? ⇒ Boolean
12 13 14 |
# File 'lib/flow/flow/status.rb', line 12 def triggered? executed_operations.any? || failed_operation? end |