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.
Files changed (4) hide show
  1. data/bin/gts +3 -2
  2. data/lib/gts/version.rb +1 -1
  3. data/lib/gts.rb +1 -1
  4. 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
@@ -1,3 +1,3 @@
1
1
  module Gts
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/gts.rb CHANGED
@@ -51,7 +51,7 @@ module Gts
51
51
  end
52
52
 
53
53
  def self.set_log_filename(filename)
54
- @@log_filename = File.expand_path(filename)
54
+ @@log_filename = filename
55
55
  FileUtils.touch filename
56
56
  end
57
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: