Sha256: bca90f3f43202aae12304d768a6c146d26add4f32b36e3160a29d3d3b3b0f197
Contents?: true
Size: 533 Bytes
Versions: 8
Compression:
Stored size: 533 Bytes
Contents
module Lono::Cfn::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}' stack with the changes? (y/N)" when :delete "Are you sure you want to want to delete the '#{stack_name}' stack? (y/N)" end puts message sure = $stdin.gets end unless sure =~ /^y/ puts "Whew! Exiting without running #{action}." exit 0 end end end
Version data entries
8 entries across 8 versions & 1 rubygems