Class: Avm::Tools::Runner::EacRedmineBase0::Bundle

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Defined in:
lib/avm/tools/runner/eac_redmine_base0/bundle.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Runs "bundle ...".

  Usage:
    __PROGRAM__ [<bundle-args>...]
    __PROGRAM__ -h | --help

  Options:
    -h --help                 Show this screen.
DOCOPT

Instance Method Summary collapse

Instance Method Details

#bundle_argsObject



29
30
31
# File 'lib/avm/tools/runner/eac_redmine_base0/bundle.rb', line 29

def bundle_args
  options.fetch('<bundle-args>').reject { |arg| arg == '--' }
end

#runObject



24
25
26
27
# File 'lib/avm/tools/runner/eac_redmine_base0/bundle.rb', line 24

def run
  infov 'Bundle arguments', ::Shellwords.join(bundle_args)
  context(:instance).bundle(*bundle_args).system!
end