Class: FIS::CLI::Auth

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

Overview

Authentication-related Thor subcommands

Instance Method Summary collapse

Instance Method Details

#loginObject



14
15
16
17
18
19
20
# File 'lib/fis/cli/auth.rb', line 14

def (*)
  if options[:help]
    invoke :help, ['login']
  else
    FIS::CLI::Commands::Login.new(options).execute
  end
end

#logoutObject



29
30
31
32
33
34
35
# File 'lib/fis/cli/auth.rb', line 29

def logout(*)
  if options[:help]
    invoke :help, ['logout']
  else
    FIS::CLI::Commands::Logout.new(options).execute
  end
end

#whoamiObject



44
45
46
47
48
49
50
# File 'lib/fis/cli/auth.rb', line 44

def whoami(*)
  if options[:help]
    invoke :help, ['whoami']
  else
    FIS::CLI::Commands::Whoami.new.execute
  end
end