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 =
<<~DOCOPT
  Realiza push de repositórios grandes
  (Que falham com "pack exceeds maximum allowed size").

  Usage:
    __PROGRAM__ [options] <source-ref> <target-ref>
    __PROGRAM__ -h | --help

  Options:
    -h --help                     Mostra esta ajuda.
    -C <git-local>                Caminho do repositório local [default: .].
    -r --remote <remote-name>     Nome do remoto [default: origin].
DOCOPT

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