procman 1.9.4 → 1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proc_man.rb +1 -1
- data/lib/proc_man/process.rb +3 -3
- data/procman-1.9.4.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98b91748689205912e77579c8763b8f2d0043b44
|
4
|
+
data.tar.gz: 067257c2626a7c771e1237ecc7973a90a49d103b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668dff33c1a46a1783238a6f25fb55c421a6c24bd826c73286b1ac044dc33e82c56a829e74ba8d50a0a2e3f7d102bfb131f4602897979325fc298829eaf357f3
|
7
|
+
data.tar.gz: 304e27ea8c2413aa9d2de0f23a63fe8e726b6c6eb2fb166ee48e0ee699cc772a961c0b30e93f150baef7e761f405344bf597613558e10869a5afd05c6370665c
|
data/lib/proc_man.rb
CHANGED
data/lib/proc_man/process.rb
CHANGED
@@ -26,7 +26,7 @@ module ProcMan
|
|
26
26
|
|
27
27
|
# Returns the current root directory path
|
28
28
|
def root
|
29
|
-
|
29
|
+
self.options[:root] || self.options[:r] || File.expand_path('./')
|
30
30
|
end
|
31
31
|
|
32
32
|
## Returns the current hostname of the machine executing this action
|
@@ -94,8 +94,8 @@ module ProcMan
|
|
94
94
|
options[:name] ||= 'unicorn'
|
95
95
|
options[:config_file] ||= "config/#{options[:name]}.rb"
|
96
96
|
options[:pid_path] ||= "log/#{options[:name]}.pid"
|
97
|
-
options[:rackup_file] ||= "
|
98
|
-
start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{root}/#{options[:config_file]} #{options[:rackup_file]}") }
|
97
|
+
options[:rackup_file] ||= "config.ru"
|
98
|
+
start { run("bundle exec #{options[:name]} -D -E #{environment} -c #{root}/#{options[:config_file]} #{root}/#{options[:rackup_file]}") }
|
99
99
|
stop { run("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
100
100
|
restart { run("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
101
101
|
end
|
data/procman-1.9.4.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
@@ -29,6 +29,7 @@ files:
|
|
29
29
|
- lib/proc_man/process.rb
|
30
30
|
- lib/proc_man/procfile.rb
|
31
31
|
- lib/procman/capistrano.rb
|
32
|
+
- procman-1.9.4.gem
|
32
33
|
- procman.gemspec
|
33
34
|
homepage: http://atechmedia.com
|
34
35
|
licenses: []
|