Module: Dawn::CLI::Auth

Extended by:
Helpers
Defined in:
lib/dawn/cli/commands/auth.rb

Class Method Summary collapse

Methods included from Helpers

current_app, current_app_name, extract_app_in_dir, extract_app_remote_from_git_config, git, git_add_dawn_remote, git_dawn_remote?, git_remotes, git_remove_dawn_remote, has_git?, try_create_app

Methods included from OutputFormatter

#format_apps, #format_domains, #format_drains, #format_gears, #format_keys, #table_style

Class Method Details

.login(username, password) ⇒ Object

“save login details to .netrc” usn = ask “Username: ” psw = password “Password: ”



12
13
14
15
# File 'lib/dawn/cli/commands/auth.rb', line 12

def self.(username, password)
  Dawn.authenticate(username: username, password: password)
  say " ! login details have been saved to your .netrc"
end