Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.397 kb
def run(cmd)
result = `#{cmd}`
if result.include?('0 failures, 0 errors')
`growlnotify -m "All green" --image ~/Downloads/rails_ok.png`
else
`growlnotify -m "OUCH!!" --image ~/Downloads/rails_fail.png`
end
puts result
end
watch('Rakefile') {|m| run "rake" }
watch('^lib/(.*)') {|m| run "rake" }
watch('^spec/(.*)') {|m| run "rake" }
Jump to Line
Something went wrong with that request. Please try again.