Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
removed growl from watchr.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Dec 29, 2010
1 parent 90508fe commit 579b5fe
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions specs.watchr
@@ -1,15 +1,3 @@
def growl(title, msg, img)
%x{growlnotify -m #{ msg.inspect} -t #{title.inspect} --image ~/.watchr/#{img}.png}
end

def form_growl_message(str)
msg = str.split("\n").last
if msg =~ /(\d)\sfailure/
img = $1.to_i > 0 ? 'fail' : 'pass'
end
growl 'Results', msg, img
end

def run(cmd)
puts cmd
output = ""
Expand All @@ -20,7 +8,7 @@ def run(cmd)
$stdout.flush
end
end
form_growl_message output
output
end

def run_spec(path)
Expand Down

0 comments on commit 579b5fe

Please sign in to comment.