Created
February 10, 2010 18:12
-
-
Save toothrot/300637 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'growl' | |
require 'lighthouse/console' | |
Lighthouse.account = "thepoint" | |
Lighthouse.token = raise("Get your own key") | |
proj_id = "13151-support" | |
bins = [] | |
bins << Bin.find(107305, :params => {:project_id => proj_id}) # my tickets bin | |
bins << Bin.find(62214, :params => {:project_id => proj_id}) # unassigned bin | |
notification_message = [] | |
bins.each do |bin| | |
notification_message << "#{bin.tickets.size} -- #{bin.name}" | |
end | |
Growl.notify(notification_message.join("\n"), :icon => "/Users/alexrakoczy/firebomb.jpg", :sticky => true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment