blob: d2871fc3367a768442c71874d27c7d2d4acfade4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env 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
|