Class: Gzr::Commands::Session

Inherits:
Thor
  • Object
show all
Defined in:
lib/gzr/commands/session.rb,
lib/gzr/commands/session/get.rb,
lib/gzr/commands/session/login.rb,
lib/gzr/commands/session/logout.rb,
lib/gzr/commands/session/update.rb

Defined Under Namespace

Classes: Get, Login, Logout, Update

Instance Method Summary collapse

Instance Method Details

#getObject



55
56
57
58
59
60
61
62
# File 'lib/gzr/commands/session.rb', line 55

def get(*)
  if options[:help]
    invoke :help, ['get']
  else
    require_relative 'session/get'
    Gzr::Commands::Session::Get.new(options).execute
  end
end

#loginObject



35
36
37
38
39
40
41
42
# File 'lib/gzr/commands/session.rb', line 35

def (*)
  if options[:help]
    invoke :help, ['login']
  else
    require_relative 'session/login'
    Gzr::Commands::Session::Login.new(options).execute
  end
end

#logoutObject



45
46
47
48
49
50
51
52
# File 'lib/gzr/commands/session.rb', line 45

def logout(*)
  if options[:help]
    invoke :help, ['logout']
  else
    require_relative 'session/logout'
    Gzr::Commands::Session::Logout.new(options).execute
  end
end

#update(workspace_id) ⇒ Object



65
66
67
68
69
70
71
72
# File 'lib/gzr/commands/session.rb', line 65

def update(workspace_id)
  if options[:help]
    invoke :help, ['update']
  else
    require_relative 'session/update'
    Gzr::Commands::Session::Update.new(workspace_id,options).execute
  end
end