class CloudFormationTool::CLI::Monitor
Public Instance Methods
execute()
click to toggle source
# 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