Created
March 2, 2009 10:13
-
-
Save kaichen/72700 to your computer and use it in GitHub Desktop.
This file contains 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 '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