Sha256: 5819fd9dcaa017f8fe5294844576c4ab47095ef1b48d45c6f188c4dcf186e459
Contents?: true
Size: 152 Bytes
Versions: 3
Compression:
Stored size: 152 Bytes
Contents
module Util def self.prompt(msg, prompt = "(y)es, (n)o ") ask(:answer, "#{msg} #{prompt} ? ") (fetch(:answer) =~ /^y$|^yes$/i) == 0 end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
capistrano-db-tasks.senya-0.4.1 | lib/capistrano-db-tasks/util.rb |
capistrano-db-tasks-0.4 | lib/capistrano-db-tasks/util.rb |
capistrano-db-tasks-0.3 | lib/capistrano-db-tasks/util.rb |