Module: Capistrano::CLI::UI::ClassMethods
- Defined in:
- lib/capistrano/cli/ui.rb
Instance Method Summary collapse
-
#password_prompt(prompt = "Password: ") ⇒ Object
Prompt for a password using echo suppression.
-
#ui ⇒ Object
Return the object that provides UI-specific methods, such as prompts and more.
Instance Method Details
#password_prompt(prompt = "Password: ") ⇒ Object
Prompt for a password using echo suppression.
22 23 24 |
# File 'lib/capistrano/cli/ui.rb', line 22 def password_prompt(prompt="Password: ") ui.ask(prompt) { |q| q.echo = false } end |
#ui ⇒ Object
Return the object that provides UI-specific methods, such as prompts and more.
17 18 19 |
# File 'lib/capistrano/cli/ui.rb', line 17 def ui @ui ||= HighLine.new end |