aboutsummaryrefslogtreecommitdiff
path: root/bin/taginfo-config.rb
blob: fbeb1633b476edf8b1dea06e21045fd44e45efd7 (plain)
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