Class: Auther::CredentialsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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

#credentialsObject



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"

   = ask "  Enter admin login:", echo: false
  password = ask "\n  Enter admin password:", echo: false
  identity = Cipher.generate , password

  display identity
end