srv_manager 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cda70bd1060591cf462d20b5554fdd4f42994c0b
4
- data.tar.gz: 3009c40c44bd51efda5b283b372dd059852372fc
3
+ metadata.gz: 0040025dcadceb9275e490410c200915f00e2e38
4
+ data.tar.gz: fd29b39c4e9d16c9518a7605b232d61f190fd8f2
5
5
  SHA512:
6
- metadata.gz: 8c93195ed3bcfef7a55f8cd3beefd95858612562a509b76d812e96eb17d8e1f775bc61c1a70d1f11c8dc7fbc74ef0824a715b813dd56927f79786fd5f37f3511
7
- data.tar.gz: 2a872d71f541fa78a7e75a4a5f48a51a6cf039139d7321fa93595c650872e03beee31fdaa5c737013b6448fdab9babfe2b1bc61bacd778f8ab215f0f301a5993
6
+ metadata.gz: 819322a445389f13ae656797d6bb4129cf2d4885dbbef810e2882946f99f3fac196b0079d6a2e0aef88e70d1b301e0599f5bedc7281b7e9bf02b98d21d753fad
7
+ data.tar.gz: 35fd3edd2ca2e9367a6b647dc017eefcdceb3c2ccbf260d8551f923f44aac9d130390d74f220aaa92f2f239b7e878c5427edc5658ae058a0f7d2105e2095bd7e
@@ -44,7 +44,7 @@ module SrvManager
44
44
 
45
45
  private
46
46
 
47
- def detault_start
47
+ def default_start
48
48
  @id = ::Process.spawn command.env,
49
49
  command.text,
50
50
  chdir: command.dir,
@@ -55,9 +55,13 @@ module SrvManager
55
55
 
56
56
  def rvm_start
57
57
  pid_file = File.expand_path "#{self.object_id}_#{Time.now.to_i}.pid", TMP_PATH
58
- rvm_pid = ::Process.spawn command.env.merge('SRV_COMMAND' => command.text, 'SRV_PIDFILE' => pid_file),
58
+ params = {
59
+ 'SRV_COMMAND' => command.text,
60
+ 'SRV_PIDFILE' => pid_file,
61
+ 'CHDIR' => command.dir
62
+ }
63
+ rvm_pid = ::Process.spawn command.env.merge(params),
59
64
  RVM_RUNNER,
60
- chdir: command.dir,
61
65
  out: '/dev/null',
62
66
  err: '/dev/null'
63
67
  ::Process.detach rvm_pid
@@ -1,3 +1,3 @@
1
1
  module SrvManager
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srv_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-20 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hirb
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Service admin and monitor
@@ -74,7 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
77
+ - ".gitignore"
78
78
  - Gemfile
79
79
  - LICENSE.txt
80
80
  - README.md
@@ -99,17 +99,17 @@ require_paths:
99
99
  - lib
100
100
  required_ruby_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.1.10
112
+ rubygems_version: 2.2.2
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Service admin and monitor