Class: Avmtrf1::Tools::Runner::Esosti

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Defined in:
lib/avmtrf1/tools/runner/esosti.rb

Constant Summary collapse

DOC =
"Utilidades para e-Sosti (Control Desk).\n\n  Usage:\n  __PROGRAM__ [options] fetch <solicitacao_id>\n  __PROGRAM__ -h | --help\n\nOptions:\n  -h --help       Mostra esta ajuda.\n  -u --user       Usu\u00E1rio no e-Sosti.\n  -U --url=<url>  Utiliza o Control Desk em <url>.\n"

Instance Method Summary collapse

Instance Method Details

#runObject



29
30
31
32
33
34
35
# File 'lib/avmtrf1/tools/runner/esosti.rb', line 29

def run
  if options.fetch('fetch')
    fetch
  else
    fatal_error('Subcomando não mapeado (Isto é um defeito do software)')
  end
end