Method: Jets::Cfn::Status#show_events
- Defined in:
- lib/jets/cfn/status.rb
#show_events(final = false) ⇒ Object
Only shows new events
88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/jets/cfn/status.rb', line 88 def show_events(final=false) if @last_shown_event_id.nil? i = find_index(:start) print_events(i) else i = find_index(:last_shown) # puts "last_shown index #{i}" print_events(i-1) unless i == 0 end return if final sleep 5 unless ENV['TEST'] refresh_events end |