Class: StackMaster::Commands::Events
- Inherits:
-
Object
- Object
- StackMaster::Commands::Events
- Includes:
- Commander::UI, StackMaster::Command
- Defined in:
- lib/stack_master/commands/events.rb
Instance Method Summary collapse
Methods included from StackMaster::Command
included, #initialize, #success?
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/stack_master/commands/events.rb', line 7 def perform events = StackEvents::Fetcher.fetch(@stack_definition.stack_name, @stack_definition.region) filter_events(events).each do |event| StackEvents::Presenter.print_event(StackMaster.stdout, event) end if @options.tail StackEvents::Streamer.stream(@stack_definition.stack_name, @stack_definition.region, io: StackMaster.stdout) end end |