Module: Trooper::DSL::Bundler
- Included in:
- Action
- Defined in:
- lib/trooper/dsl/bundler.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) bundle_exec(command)
5 6 7 8 |
# File 'lib/trooper/dsl/bundler.rb', line 5 def bundle_exec(command) use_bundle = using_bundler? ? "#{ruby_bin_path}bundle exec " : "" run use_bundle + command end |
- (Object) bundle_install
10 11 12 |
# File 'lib/trooper/dsl/bundler.rb', line 10 def bundle_install run "#{ruby_bin_path}bundle install --path #{trooper_path}/bundle --deployment --without development test" if using_bundler? end |
- (Object) rake(command)
14 15 16 |
# File 'lib/trooper/dsl/bundler.rb', line 14 def rake(command) bundle_exec "rake #{command}" end |