Sha256: a789258efb72e42d98e2e8107d409447df10b11ad188bb2111874ffb2ddb7358
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
module Glb::Util module Sure def sure?(message="Are you sure?") if @options[:yes] || ENV['GLB_YES'] sure = 'y' else print "#{message} (y/N) " sure = $stdin.gets end unless sure =~ /^y/ puts "Whew! Exiting." exit 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glb-0.1.1 | lib/glb/util/sure.rb |