Class: Avm::Tools::Runner::EacRedmineBase0::Bundle
- Inherits:
-
EacRubyUtils::Console::DocoptRunner
- Object
- EacRubyUtils::Console::DocoptRunner
- Avm::Tools::Runner::EacRedmineBase0::Bundle
- 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_args ⇒ Object
29 30 31 |
# File 'lib/avm/tools/runner/eac_redmine_base0/bundle.rb', line 29 def bundle_args .fetch('<bundle-args>').reject { |arg| arg == '--' } end |
#run ⇒ Object
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 |