Class: Avm::Rails::Runners::Bundle
- Inherits:
-
EacRubyUtils::Console::DocoptRunner
- Object
- EacRubyUtils::Console::DocoptRunner
- Avm::Rails::Runners::Bundle
show all
- Defined in:
- lib/avm/rails/runners/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/rails/runners/bundle.rb', line 29
def bundle_args
options.fetch('<bundle-args>').reject { |arg| arg == '--' }
end
|
#run ⇒ Object
24
25
26
27
|
# File 'lib/avm/rails/runners/bundle.rb', line 24
def run
infov 'Bundle arguments', ::Shellwords.join(bundle_args)
context(:instance).bundle(*bundle_args).system!
end
|