Debug mode prompt
# File lib/capistrano/cli/ui.rb, line 27 def debug_prompt(cmd) ui.say("Preparing to execute command: #{cmd}") prompt = "Execute ([Yes], No, Abort) " ui.ask("#{prompt}? ") do |q| q.overwrite = false q.default = 'y' q.validate = /(y(es)?)|(no?)|(a(bort)?|\n)/ q.responses[:not_valid] = prompt end end
Generated with the Darkfish Rdoc Generator 2.