svutil 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,5 +6,5 @@ require 'svutil/log'
6
6
  require 'svutil/process_manager'
7
7
 
8
8
  module SVUtil
9
- VERSION = '0.0.4'
9
+ VERSION = '0.0.6'
10
10
  end
@@ -10,22 +10,24 @@ module SVUtil
10
10
  daemonize if SVUtil::config.daemon
11
11
  write_pid_file
12
12
  @klass = klass
13
+ @server_instance = @klass.new
13
14
  end
14
15
 
15
16
  def start
16
- begin
17
- @klass.new.run
18
- rescue
19
- puts $!
20
- ensure
21
- remove_pid_file
22
- exit 1
23
- end
17
+ begin
18
+ @server_instance.run
19
+ rescue
20
+ STDERR.puts $!
21
+ ensure
22
+ remove_pid_file
23
+ exit 1
24
+ end
24
25
  end
25
26
 
26
27
  private
27
28
  def shutdown
28
29
  Log.info "Shutting Down"
30
+ @server_instance.shutdown if @server_instance.respond_to?(:shutdown)
29
31
  remove_pid_file
30
32
  exit 0
31
33
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 6
9
+ version: 0.0.6
5
10
  platform: ruby
6
11
  authors:
7
12
  - Daniel Draper
@@ -9,29 +14,37 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-09-22 00:00:00 +09:30
17
+ date: 2010-07-07 00:00:00 +09:30
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.5.2
24
- version:
27
+ segments:
28
+ - 1
29
+ - 5
30
+ - 3
31
+ version: 1.5.3
32
+ type: :development
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
33
- version: 2.3.3
34
- version:
41
+ segments:
42
+ - 2
43
+ - 4
44
+ - 0
45
+ version: 2.4.0
46
+ type: :development
47
+ version_requirements: *id002
35
48
  description: A simple managed process builder for Ruby projects
36
49
  email:
37
50
  - daniel@netfox.com
@@ -69,21 +82,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
82
  requirements:
70
83
  - - ">="
71
84
  - !ruby/object:Gem::Version
85
+ segments:
86
+ - 0
72
87
  version: "0"
73
- version:
74
88
  required_rubygems_version: !ruby/object:Gem::Requirement
75
89
  requirements:
76
90
  - - ">="
77
91
  - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
78
94
  version: "0"
79
- version:
80
95
  requirements: []
81
96
 
82
97
  rubyforge_project: svutil
83
- rubygems_version: 1.3.3
98
+ rubygems_version: 1.3.6
84
99
  signing_key:
85
100
  specification_version: 3
86
101
  summary: Simple Process Builder for Ruby
87
102
  test_files:
88
- - test/test_svutil.rb
89
103
  - test/test_helper.rb
104
+ - test/test_svutil.rb