[Cruisecontrolrb-users] reporting failures

Chad Woolley thewoolleyman at gmail.com
Wed Feb 27 18:56:38 EST 2008


On Wed, Feb 27, 2008 at 3:33 PM, itsdave101 at gmail.com
<itsdave101 at gmail.com> wrote:
> I think i figured it out. seems I should be using
>
> Rake::Task["spec"].invoke
>
> as opposed to
>
> system "rake spec"
>
> found my answer here:
> http://railsbros.de/2007/11/19/rake-code-cruise-code-task

Here's what we do:

execute "time rake spec --trace"

def execute(cmd)
   system(cmd) || raise("Build failed")
end

..but there are some drawbacks to that, so the Rake::Task.invoke may
be better in some cases...

BTW I just noticed your ID.  Dave's not here!!!

-- Chad


More information about the Cruisecontrolrb-users mailing list