GrowlGlue : tying together Autotest and Growl

Posted by collin
on Wednesday, July 09

A while ago I blogged about modifying one’s ~/.autotest file and adding all sort of regular expression pattern matching to parse autotest output and then display notifications with images through Growl. Because it’s unreasonable to assume that anyone would actually want to do all of that, I made my first gem: growl-glue.

% sudo gem install growl-glue

And then inside of your ~/.autotest file, something simple like:

require 'rubygems'
require 'growl_glue'

GrowlGlue::Autotest.initialize do |config|
  config.notification :use_network_notifications => true
  config.title :success => "Everything is Great" 
  config.title :failure => "Hate" 
  config.say :failure => "ON NO!!!" 
end

And that’s it! It even comes embedded with sample success and failure images that you can override with your own if you wish (but don’t have to). Make sure to look over the README to get started.

Comments

Leave a response

Comment