Sha256: 2fec10b667ed2767cb25753cae2e82a99c5c7349080feb442999d82e7558f7da
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
module LonoCfn module Util def are_you_sure?(action) if @options[:sure] sure = 'y' else puts "Are you sure you want to want to #{action} the stack with the changes? (y/N)" sure = $stdin.gets end unless sure =~ /^y/ puts "Exiting without #{action}" exit 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lono-cfn-1.0.2 | lib/lono_cfn/util.rb |
lono-cfn-1.0.1 | lib/lono_cfn/util.rb |
lono-cfn-1.0.0 | lib/lono_cfn/util.rb |