lib/capistrano-db-tasks/util.rb in capistrano-db-tasks-0.2.1 vs lib/capistrano-db-tasks/util.rb in capistrano-db-tasks-0.3

- old
+ new

@@ -1,10 +1,6 @@ module Util def self.prompt(msg, prompt = "(y)es, (n)o ") - answer = Capistrano::CLI.ui.ask("#{msg} #{prompt} ? ") do |q| - q.overwrite = false - q.validate = /^y$|^yes$|^n$|^no$/i - q.responses[:not_valid] = prompt - end - (answer =~ /^y$|^yes$/i) == 0 + ask(:answer, "#{msg} #{prompt} ? ") + (fetch(:answer) =~ /^y$|^yes$/i) == 0 end end