Module: Capistrano::CLI::UI::ClassMethods

Module | Capistrano::CLI::UI::ClassMethods
In: | lib/capistrano/cli/ui.rb lib/capistrano/cli/ui.rb

### Methods

debug_prompt debug_prompt password_prompt password_prompt ui ui

### Public Instance methods

debug_prompt(cmd)

Debug mode prompt

[Source]

        # 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)/i
    34:             q.responses[:not_valid] = prompt
    35:           end
    36:         end

debug_prompt(cmd)

Debug mode prompt

[Source]

        # 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)/i
    34:             q.responses[:not_valid] = prompt
    35:           end
    36:         end

password_prompt(prompt="Password: ")

Prompt for a password using echo suppression.

[Source]

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

password_prompt(prompt="Password: ")

Prompt for a password using echo suppression.

[Source]

        # 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()

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

[Source]

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

ui()

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

[Source]

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

[Validate]