Method: Sym::App::Input::Handler#ask

Defined in:
lib/sym/app/input/handler.rb

#askObject



16
17
18
19
20
21
22
23
# File 'lib/sym/app/input/handler.rb', line 16

def ask
  retries ||= 0
  prompt('Password: ', :green)
rescue ::OpenSSL::Cipher::CipherError
  stderr.puts 'Invalid password. Please try again.'
  retry if (retries += 1) < 3
  nil
end