Sha256: 743a7ec37ef0f30833ad2e418a645f2f2f4b146d941d4964216f114415d970d3

Contents?: true

Size: 153 Bytes

Versions: 1

Compression:

Stored size: 153 Bytes

Contents

module Util
  def self.prompt(msg, prompt = "(y)es, (n)o ")
    ask(:answer, "#{msg} #{prompt} ? ")
    (fetch(:answer) =~ /^y$|^yes$/i).zero?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-db-tasks-0.5 lib/capistrano-db-tasks/util.rb