Class: CloudFormationTool::CLI::Monitor
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- CloudFormationTool::CLI::Monitor
- Defined in:
- lib/cloud_formation_tool/cli/monitor.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cloud_formation_tool/cli/monitor.rb', line 10 def execute begin st = CloudFormation::Stack.new(stack_name) st.see_events unless all? while true st.monitor sleep 1 end rescue CloudFormationTool::Errors::StackDoesNotExistError => e error "Stack #{stack_name} does not exist" rescue SystemExit, Interrupt => e # CTRL-C out of the loop puts "\n" end end |