gts 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/gts +3 -2
- data/lib/gts/version.rb +1 -1
- data/lib/gts.rb +1 -1
- metadata +1 -1
data/bin/gts
CHANGED
@@ -20,11 +20,11 @@ opt_parser = OptionParser.new do |opt|
|
|
20
20
|
end
|
21
21
|
|
22
22
|
opt.on("-o","--output FILENAME","output file name; if given csv file with captured data is created") do |filename|
|
23
|
-
options[:output_file] = filename
|
23
|
+
options[:output_file] = File.expand_path(filename)
|
24
24
|
end
|
25
25
|
|
26
26
|
opt.on("-l", "--logfile FILENAME", "file for writing logs. If omitted, logs are written to STDOUT.") do |filename|
|
27
|
-
options[:log_file] = filename
|
27
|
+
options[:log_file] = File.expand_path(filename)
|
28
28
|
end
|
29
29
|
|
30
30
|
opt.on("-d","--daemon","run in daemon mode?") do
|
@@ -63,6 +63,7 @@ Signal.trap("TERM") { Gts::Server.stop! }
|
|
63
63
|
Gts.server = Gts::Server
|
64
64
|
if options[:daemon]
|
65
65
|
Gts.daemonize
|
66
|
+
Gts.set_logger
|
66
67
|
end
|
67
68
|
Gts.storage = Gts::RedisStorage.new(:host => "0.0.0.0", :port => 6379) # we use just this one so far, TODO should be configurable
|
68
69
|
Gts.server.start!(:address => options[:address], :port => options[:port], :output_file => options[:output_file])
|
data/lib/gts/version.rb
CHANGED
data/lib/gts.rb
CHANGED