Class: Uffizzi::Cli

Inherits:
Thor
  • Object
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

Returns:

  • (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

#loginObject



23
24
25
26
# File 'lib/uffizzi/cli.rb', line 23

def 
  require_relative 'cli/login'
  Login.new(options).run
end

#login_by_identity_tokenObject



32
33
34
35
# File 'lib/uffizzi/cli.rb', line 32

def 
  require_relative 'cli/login_by_identity_token'
  LoginByIdentityToken.new(options).run
end

#logoutObject



38
39
40
41
# File 'lib/uffizzi/cli.rb', line 38

def logout
  require_relative 'cli/logout'
  Logout.new(options).run
end

#versionObject



14
15
16
17
# File 'lib/uffizzi/cli.rb', line 14

def version
  require_relative 'version'
  Uffizzi.ui.say(Uffizzi::VERSION)
end