Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (11 sloc) 0.333 kB
watch('logs/.*\.txt') do |match|
line = File.readlines(match[0])[0].split("\r").last.strip
version = line.split(':')[0].strip
msg = line.split(':')[1].strip
cmd = "growlnotify -n OrangeCommands --image lib/fireworks.png"
ok = msg['0 failed']
if !ok
cmd << " -p 2 -s"
end
system "#{cmd} -m '#{msg}' #{version}"
end
Jump to Line
Something went wrong with that request. Please try again.