lib/ufo/destroy.rb in ufo-4.0.3 vs lib/ufo/destroy.rb in ufo-4.1.0

- old
+ new

@@ -12,11 +12,15 @@ exit end cloudformation.delete_stack(stack_name: @stack_name) puts "Deleting CloudFormation stack with ECS resources: #{@stack_name}." + return unless @options[:wait] + start_time = Time.now status.wait + took = Time.now - start_time + puts "Time took for deletion: #{status.pretty_time(took).green}." end def are_you_sure? return true if @options[:sure] puts "You are about to destroy #{@pretty_service_name.colorize(:green)} service on the #{@cluster.colorize(:green)} cluster."