Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created September 2, 2009 15:53
Show Gist options
  • Save adamhunter/179781 to your computer and use it in GitHub Desktop.
Save adamhunter/179781 to your computer and use it in GitHub Desktop.
# stick this in your rakefile and smoke it
# this will let you notify yourself after any rake task completes
# you need to install growlnotify from the growl package extras folder
# usage: rake run:task growl
def notify(msg, title = 'Rake Notify')
system "growlnotify -m \"#{msg}\" -t \"#{title}\""
end
desc "Growl after rake task"
task :growl do
notify('The rake task you ran has completed', 'Rake Finished')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment