Skip to content

Instantly share code, notes, and snippets.

@kaichen
Created March 2, 2009 10:13
Show Gist options
  • Save kaichen/72700 to your computer and use it in GitHub Desktop.
Save kaichen/72700 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
if ARGV.empty? || ARGV.size != 3
#display the usage
return
end
auth_parm, project_id, tricket_id = ARGV
doc = Nokogiri::XML(`curl -u #{ARGV[0]} http://theplant.lighthouseapp.com/projects/#{ARGV[1]}/tickets/#{ARGV[2]}.xml`)
doc.search('ticket tag')[0].content.split(' ').each do |tag|
puts tag
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment