[Cruisecontrolrb-users] reporting failures

Chad Woolley
Wed, 27 Feb 2008 23:56:38 -0000

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