Chad,

I wanted to make sure that I understood your suggestion. I tried to call
bundler through a systems call using the "back tick" or `bundle install`
 (see below) but that didn't work.

I believe the main issue is that I need to run bundle install before any of
the rake files are executed or call my rake file with "bundle exec rake
..."

I'm hoping you can point me in the right direction in the code to make
either modification. Maybe the easiest thing to do is to set
project.build_command to a shell script. Other than bundle install, what
would I put in my shell script to get cruise control to execute what it
currently does? (I'm guessing it is a call to cc_build.rake with some
arguments.)


lib/tasks/cruise.rake
require 'rubygems'
require 'rake'
require 'fileutils'
require 'bundler'

desc "Task for cruise Control"
task :cruise do
  RAILS_ENV = ENV['RAILS_ENV'] = 'test'

  `bundle install`
  Bundler.setup(:default, :test)

  ...

end
_______________________________________________
Cruisecontrolrb-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to