Permalink
Browse files

CI: return result of last rake task

  • Loading branch information...
1 parent 907858c commit e889f315c8af6d67bf605069a0ffb8848aea145d @jeremy jeremy committed Nov 10, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 ci/ci_build.rb
View
@@ -7,7 +7,9 @@ def root_dir
end
def rake(*tasks)
- tasks.map { |task| system "#{root_dir}/bin/rake", task }.join("\n")
+ result = nil
+ tasks.each { |task| result = system("#{root_dir}/bin/rake", task) }
+ result
end
puts "[CruiseControl] Rails build"

0 comments on commit e889f31

Please sign in to comment.