Skip to content

Instantly share code, notes, and snippets.

@xoebus
Forked from seadowg/buildfile
Created March 14, 2012 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoebus/2033178 to your computer and use it in GitHub Desktop.
Save xoebus/2033178 to your computer and use it in GitHub Desktop.
Add growl 1.3 to buildr
# Add this to a buildr 'buildfile' to receive growl notifications when compilation
# completes or fails (including cc compilations)
require 'ruby_gntp'
# Growl setup
Buildr.application.on_completion do |title, message|
GNTP.notify({
:app_name => "buildr",
:title => title,
:text => message,
})
end
Buildr.application.on_failure do |title, message|
GNTP.notify({
:app_name => "buildr",
:title => title,
:text => message,
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment