Class: Gleis::CLI::Auth
- Inherits:
-
Thor
- Object
- Thor
- Gleis::CLI::Auth
- Defined in:
- lib/gleis/cli/auth.rb
Overview
Authentication-related CLI commands
Instance Method Summary collapse
- #login(username, password = nil) ⇒ Object
- #logout ⇒ Object
- #register(email) ⇒ Object
- #whoami ⇒ Object
Instance Method Details
#login(username, password = nil) ⇒ Object
10 11 12 |
# File 'lib/gleis/cli/auth.rb', line 10 def login(username, password = nil) Authentication.login(username, password, [:skip_keygen]) end |
#logout ⇒ Object
15 16 17 |
# File 'lib/gleis/cli/auth.rb', line 15 def logout Authentication.logout end |
#register(email) ⇒ Object
20 21 22 |
# File 'lib/gleis/cli/auth.rb', line 20 def register(email) Authentication.register(email) end |
#whoami ⇒ Object
25 26 27 |
# File 'lib/gleis/cli/auth.rb', line 25 def whoami Authentication.whoami end |