Sha256: 7927d5287ec757f1ec6ae06c628cceebfdea7e763d9ce916333a5ef756b866b4
Contents?: true
Size: 682 Bytes
Versions: 28
Compression:
Stored size: 682 Bytes
Contents
class Lono::Cfn module Util def are_you_sure?(stack_name, action) if @options[:sure] sure = 'y' else message = case action when :update "Are you sure you want to want to update the #{stack_name.color(:green)} stack with the changes? (y/N)" when :delete "Are you sure you want to want to delete the #{stack_name.color(:green)} stack? (y/N)" end puts message sure = $stdin.gets end unless sure =~ /^y/ puts "Whew! Exiting without running #{action}." exit 0 end end def switch_current(stack_name) Current.name!(stack_name) end end end
Version data entries
28 entries across 28 versions & 1 rubygems