svutil 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/svutil/config.rb CHANGED
@@ -69,6 +69,9 @@ module SVUtil
69
69
  end
70
70
  opts.on("-l", "--debug-log [log-file]", "Debug Log File") do |log|
71
71
  self.set(log_file, log)
72
+ end
73
+ opts.on("-T", "--trace", "Display backtrace on errors") do
74
+ self.set(:trace, true)
72
75
  end
73
76
  yield opts if block_given?
74
77
  end.parse!
@@ -18,6 +18,7 @@ module SVUtil
18
18
  @server_instance.run
19
19
  rescue
20
20
  STDERR.puts $!
21
+ STDERR.puts $!.backtrace if SVUtil::config.trace
21
22
  ensure
22
23
  remove_pid_file
23
24
  exit 1
data/lib/svutil.rb CHANGED
@@ -6,5 +6,5 @@ require 'svutil/log'
6
6
  require 'svutil/process_manager'
7
7
 
8
8
  module SVUtil
9
- VERSION = '0.0.6'
9
+ VERSION = '0.0.7'
10
10
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Draper