Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 276 Bytes
# sudo gem install watchr growl
#
# Run me with:
# $ watchr watch.txt
#
require 'growl'
watch('.*\.js') {test}
def test
if (system "node test.js")
Growl.notify 'SUCCESS', :icon => 'misc/green.png'
else
Growl.notify 'FAILURE', :icon => 'misc/red.png'
end
end