Class: Sfctl::Commands::Auth

Inherits:
Thor
  • Object
show all
Defined in:
lib/sfctl/commands/auth.rb,
lib/sfctl/commands/auth/bye.rb,
lib/sfctl/commands/auth/init.rb

Defined Under Namespace

Classes: Bye, Init

Instance Method Summary collapse

Instance Method Details

#byeObject



10
11
12
13
14
15
16
17
# File 'lib/sfctl/commands/auth.rb', line 10

def bye(*)
  if options[:help]
    invoke :help, ['bye']
  else
    require_relative 'auth/bye'
    Sfctl::Commands::Auth::Bye.new(options).execute
  end
end

#initObject



25
26
27
28
29
30
31
32
# File 'lib/sfctl/commands/auth.rb', line 25

def init(*)
  if options[:help]
    invoke :help, ['init']
  else
    require_relative 'auth/init'
    Sfctl::Commands::Auth::Init.new(options).execute
  end
end