Sha256: 377a14fad730924416cb3a3da9668ff9dea4b646ee3577233ed01f2fab669728
Contents?: true
Size: 158 Bytes
Versions: 1
Compression:
Stored size: 158 Bytes
Contents
module Util def self.prompt(msg, prompt = "(y)es, (n)o ") ask(:answer, "#{msg} #{prompt} ? ") (fetch(:answer) =~ /^y$|^yes$/i).to_i.zero? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-db-tasks-0.6 | lib/capistrano-db-tasks/util.rb |