Class: Gleis::CLI::Auth

Inherits:
Thor
  • Object
show all
Defined in:
lib/gleis/cli/auth.rb

Overview

Authentication-related CLI commands

Instance Method Summary collapse

Instance Method Details

#login(username, password = nil) ⇒ Object



10
11
12
# File 'lib/gleis/cli/auth.rb', line 10

def (username, password = nil)
  Authentication.(username, password, options[:skip_keygen])
end

#logoutObject



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

#whoamiObject



25
26
27
# File 'lib/gleis/cli/auth.rb', line 25

def whoami
  Authentication.whoami
end