1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/ruby # # taginfo-config.rb [KEY] # require 'rubygems' require 'json' require File.expand_path(File.dirname(__FILE__)) + '/../web/lib/config.rb' TaginfoConfig.read value = TaginfoConfig.get(ARGV[0]) if value.nil? puts '' exit 1 end puts value