Created
September 2, 2009 15:53
-
-
Save adamhunter/179781 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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