Class Index [+]

Quicksearch

Capistrano::CLI::UI::ClassMethods

Public Instance Methods

debug_prompt(cmd) click to toggle source

Debug mode prompt

    # File lib/capistrano/cli/ui.rb, line 27
27:         def debug_prompt(cmd)
28:           ui.say("Preparing to execute command: #{cmd}")
29:           prompt = "Execute ([Yes], No, Abort) "
30:           ui.ask("#{prompt}?  ") do |q|
31:             q.overwrite = false
32:             q.default = 'y'
33:             q.validate = /(y(es)?)|(no?)|(a(bort)?|\n)/
34:             q.responses[:not_valid] = prompt
35:           end
36:         end
password_prompt(prompt="Password: ") click to toggle source

Prompt for a password using echo suppression.

    # File lib/capistrano/cli/ui.rb, line 22
22:         def password_prompt(prompt="Password: ")
23:           ui.ask(prompt) { |q| q.echo = false }
24:         end
ui() click to toggle source

Return the object that provides UI-specific methods, such as prompts and more.

    # File lib/capistrano/cli/ui.rb, line 17
17:         def ui
18:           @ui ||= HighLine.new
19:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.