aboutsummaryrefslogtreecommitdiff
path: root/bin/taginfo-config.rb
blob: 96d8a4347dcd786669cee12054c198e7ee8b88ed (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 [DEFAULT]
#

require 'rubygems'
require 'json'

require File.expand_path(File.dirname(__FILE__)) + '/../web/lib/config.rb'

TaginfoConfig.read

value = TaginfoConfig.get(ARGV[0], ARGV[1])
if value.nil?
    puts ''
    exit 1
end

puts value