Skip to content

Instantly share code, notes, and snippets.

View dipth's full-sized avatar

Thomas Dippel dipth

  • Visioneers
  • Silkeborg, Denmark
View GitHub Profile
@dipth
dipth / tests.watchr
Created February 14, 2011 12:08 — forked from boxedup/tests.watchr
ENV["WATCHR"] = "1"
system 'clear'
puts "I'm watching you..."
def growl(message)
growlnotify = `which growlnotify`.chomp
title = "Watchr Test Results"
image = message.include?('0 failure') ? "~/.watchr/passed.png" : "~/.watchr/failed.png"
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'"
system %(#{growlnotify} #{options} &)