svutil 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/svutil/config.rb +2 -2
  2. data/lib/svutil.rb +1 -1
  3. metadata +7 -7
data/lib/svutil/config.rb CHANGED
@@ -57,7 +57,7 @@ module SVUtil
57
57
 
58
58
  def validate
59
59
  # TODO: Check file perms
60
- if (pid_file.nil? or pid_file.empty? or File.directory?(pid_file))
60
+ if (pid_file.nil? or pid_file.empty? or File.directory?(pid_file) && self.daemon)
61
61
  STDERR.puts "PID file must be a writable file"
62
62
  exit 1
63
63
  end
@@ -93,7 +93,7 @@ module SVUtil
93
93
  opts.on("-T", "--trace", "Display backtrace on errors") do
94
94
  self.trace = true
95
95
  end
96
- opts.on("-P", "--pid", "PID File") do |pid|
96
+ opts.on("-P", "--pid [pid-file]", "PID File") do |pid|
97
97
  self.pid_file = pid
98
98
  end
99
99
  yield opts if block_given?
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.1.5'
9
+ VERSION = '0.1.6'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svutil
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:
@@ -13,7 +13,7 @@ date: 2011-12-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newgem
16
- requirement: &70229174972460 !ruby/object:Gem::Requirement
16
+ requirement: &70259381923440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.5.3
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70229174972460
24
+ version_requirements: *70259381923440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &70229174970480 !ruby/object:Gem::Requirement
27
+ requirement: &70259381920560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70229174970480
35
+ version_requirements: *70259381920560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &70229170988000 !ruby/object:Gem::Requirement
38
+ requirement: &70259378302780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.10'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70229170988000
46
+ version_requirements: *70259378302780
47
47
  description: A simple managed process builder for Ruby projects
48
48
  email:
49
49
  - daniel@netfox.com