Class: Auther::CredentialsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Auther::CredentialsGenerator
- Defined in:
- lib/generators/auther/credentials/credentials_generator.rb
Overview
Credentials generator for new secret, login, and password.
Instance Method Summary collapse
Instance Method Details
#credentials ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/auther/credentials/credentials_generator.rb', line 7 def credentials puts "Welcome to the Auther credentials generator.\n" login = ask " Enter admin login:", echo: false password = ask "\n Enter admin password:", echo: false identity = Cipher.generate login, password display identity end |