Module: Trooper::DSL::Bundler

Included in:
Action
Defined in:
lib/trooper/dsl/bundler.rb

Instance Method Summary collapse

Instance Method Details

#bundle_exec(command) ⇒ Object



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

#bundle_installObject



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

#rake(command) ⇒ Object



14
15
16
# File 'lib/trooper/dsl/bundler.rb', line 14

def rake(command)
  bundle_exec "rake #{command}"
end