On 11/5/06, Phlip <phlipcpp / yahoo.com> wrote:
> Ruboids:
>
> Suppose I wanted to play a WAV file each time any Rakefile tasks all
> succeed, and play another one each time any task fails.
>
> How could one add such a feature, portably between Linux and WinXP?
>
> The two sub-questions are therefore:
>
>  - what's Ruby's dirt-simple but portable sound library?
>
>  - how to hook into the Rakefile task stack
>      to intercept its results?
>
> Long term, I will select choice samples from "Holy Grail", such as "Ni!" and
> "Bad Zoot!" But that's the easy part...
>
> --
>   Phlip
>   http://www.greencheese.us/ZeekLand <-- NOT a blog!!!

I suppose you can check the result code/errorlevel that rake returns,
but I haven't verified this.