Module Net::SSH::PromptMethods::Highline
In: lib/net/ssh/prompt.rb
lib/net/ssh/prompt.rb

Defines the prompt method to use if the Highline library is installed.

Methods

prompt   prompt  

Public Instance methods

Uses Highline#ask to present a prompt and accept input. If echo is false, the characters entered by the user will not be echoed to the screen.

[Source]

    # File lib/net/ssh/prompt.rb, line 16
16:       def prompt(prompt, echo=true)
17:         @highline ||= ::HighLine.new
18:         @highline.ask(prompt + " ") { |q| q.echo = echo }
19:       end

Uses Highline#ask to present a prompt and accept input. If echo is false, the characters entered by the user will not be echoed to the screen.

[Source]

    # File lib/net/ssh/prompt.rb, line 16
16:       def prompt(prompt, echo=true)
17:         @highline ||= ::HighLine.new
18:         @highline.ask(prompt + " ") { |q| q.echo = echo }
19:       end

[Validate]