Skip to content

Instantly share code, notes, and snippets.

module Autotest::Growl
def self.growl title, msg, img, pri=0, stick=""
system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{stick}"
end
def self.strip_command_line_format(text)
result = text.gsub(/\e\[(\d+)m/,"")
result.gsub!("\n","")
end