On Thu, Jul 24, 2008 at 5:02 PM, Assaf Arkin <[EMAIL PROTECTED]> wrote:
> == Growl
>
> For those of you running on OS X and have Growl installed (which I'm
> told is practically everyone running on OS X), I added Growl
> notifications for completed and failed builds. You can turn them
> on/off from the Growl notification pane. I heard that Growl is coming
> to Windows and there's an alpha out.
As a general mechanism, I'd like to suggest that Buildr could use the
BUILDR_NOTIFY environment variable to check if notifications should be sent
and use its value as a system command, substituting the literals {type},
{title} and {message} for their corresponding values.
For example, on my system I would define:
export BUILDR_NOTIFY="qube -i \"{title}\" \"{message}\""
to use Qube <https://launchpad.net/qube>, a libnotify client on Ubuntu
Linux.
Similarly, in the spirit of error(), warn(), info() and trace(), it would be
nice to make notify(type, title, message) available so that tasks dispatch
notifications as well.
I'm committing the code to support this as basis for discussion and/or
improvement.
alex