Class: Stackup::Monitor
- Inherits:
-
Object
- Object
- Stackup::Monitor
- Defined in:
- lib/stackup/monitor.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
-
#stack ⇒ Object
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(stack) ⇒ Monitor
constructor
A new instance of Monitor.
- #new_events ⇒ Object
Constructor Details
#initialize(stack) ⇒ Monitor
5 6 7 8 |
# File 'lib/stackup/monitor.rb', line 5 def initialize(stack) @stack = stack @events = Set.new end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
4 5 6 |
# File 'lib/stackup/monitor.rb', line 4 def events @events end |
#stack ⇒ Object
Returns the value of attribute stack.
4 5 6 |
# File 'lib/stackup/monitor.rb', line 4 def stack @stack end |
Instance Method Details
#new_events ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/stackup/monitor.rb', line 10 def new_events stack.events.take_while do |event| !seen?(event) end.reverse rescue ::Aws::CloudFormation::Errors::ValidationError => e [] end |