Class: Avmtrf1::Tools::Runner::Git::PushLarge

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

Constant Summary collapse

DOC =
"Realiza push de reposit\u00F3rios grandes\n(Que falham com \"pack exceeds maximum allowed size\").\n\nUsage:\n  __PROGRAM__ [options] <source-ref> <target-ref>\n  __PROGRAM__ -h | --help\n\nOptions:\n  -h --help                     Mostra esta ajuda.\n  -C <git-local>                Caminho do reposit\u00F3rio local [default: .].\n  -r --remote <remote-name>     Nome do remoto [default: origin].\n"

Instance Method Summary collapse

Instance Method Details

#runObject



25
26
27
28
29
30
31
32
# File 'lib/avmtrf1/tools/runner/git/push_large.rb', line 25

def run
  ::Avmtrf1::Git::PushLarge.new(
    ::File.expand_path(options.fetch('-C')),
    options.fetch('--remote'),
    options.fetch('<source-ref>'),
    options.fetch('<target-ref>')
  ).run
end