Module: Util
- Defined in:
- lib/capistrano-db-tasks/util.rb
Class Method Summary collapse
Class Method Details
.prompt(msg, prompt = "(y)es, (n)o ") ⇒ Object
2 3 4 5 |
# File 'lib/capistrano-db-tasks/util.rb', line 2 def self.prompt(msg, prompt = "(y)es, (n)o ") ask(:answer, "#{msg} #{prompt} ? ") (fetch(:answer) =~ /^y$|^yes$/i).to_i.zero? end |