Method: Sym::App::Input::Handler#ask
- Defined in:
- lib/sym/app/input/handler.rb
#ask ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/sym/app/input/handler.rb', line 8 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 |