Class: Avmtrf1::Tools::Runner::CheckPoint::Login

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Includes:
EacRubyUtils::Console::Speaker, EacRubyUtils::SimpleCache
Defined in:
lib/avmtrf1/tools/runner/check_point/login.rb

Constant Summary collapse

DOC =
"Login no CheckPoint (https://cp.trf1.jus.br).\n\nUsage:\n  __PROGRAM__ [options]\n  __PROGRAM__ -h | --help\n\nOptions:\n  -h --help       Mostra esta ajuda.\n"

Instance Method Summary collapse

Instance Method Details

#runObject



28
29
30
31
32
33
34
35
36
37
# File 'lib/avmtrf1/tools/runner/check_point/login.rb', line 28

def run
  infov 'Username', session.username
  logged = session.logged?
  infov 'Logged', logged
  return if logged

  infom 'Trying login...'
  session.
  infov 'Logged after login?', session.logged?
end

#session_uncachedObject



39
40
41
# File 'lib/avmtrf1/tools/runner/check_point/login.rb', line 39

def session_uncached
  ::Avmtrf1::CheckPoint::Session.by_default_ad_user
end