Class: Uffizzi::Cli
- Inherits:
-
Thor
show all
- Defined in:
- lib/uffizzi/cli.rb
Defined Under Namespace
Classes: Account, Cluster, Common, Config, Connect, Dev, Disconnect, Install, Login, LoginByIdentityToken, Logout, Preview, Project, Status, Uninstall
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
9
10
11
|
# File 'lib/uffizzi/cli.rb', line 9
def self.exit_on_failure?
true
end
|
Instance Method Details
#disconnect(credential_type) ⇒ Object
69
70
71
72
|
# File 'lib/uffizzi/cli.rb', line 69
def disconnect(credential_type)
require_relative 'cli/disconnect'
Disconnect.new.run(credential_type)
end
|
#login ⇒ Object
23
24
25
26
|
# File 'lib/uffizzi/cli.rb', line 23
def login
require_relative 'cli/login'
Login.new(options).run
end
|
#login_by_identity_token ⇒ Object
32
33
34
35
|
# File 'lib/uffizzi/cli.rb', line 32
def login_by_identity_token
require_relative 'cli/login_by_identity_token'
LoginByIdentityToken.new(options).run
end
|
#logout ⇒ Object
38
39
40
41
|
# File 'lib/uffizzi/cli.rb', line 38
def logout
require_relative 'cli/logout'
Logout.new(options).run
end
|
#version ⇒ Object
14
15
16
17
|
# File 'lib/uffizzi/cli.rb', line 14
def version
require_relative 'version'
Uffizzi.ui.say(Uffizzi::VERSION)
end
|