procman 1.6.4 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/proc_man.rb +1 -1
- data/lib/proc_man/process.rb +6 -7
- metadata +2 -4
- data/procman-1.6.2.gem +0 -0
- data/procman-1.6.3.gem +0 -0
data/lib/proc_man.rb
CHANGED
data/lib/proc_man/process.rb
CHANGED
@@ -74,17 +74,16 @@ module ProcMan
|
|
74
74
|
# A shortcut method for defining a set of RBG processes
|
75
75
|
def rbg(options = {})
|
76
76
|
options[:config_file] ||= "Rbgfile"
|
77
|
-
options[:
|
78
|
-
|
79
|
-
|
80
|
-
restart { system("bundle exec rbg restart -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
|
77
|
+
start { system("bundle exec rbg start -c #{root}/#{options[:config_file]} -E #{environment}") }
|
78
|
+
stop { system("bundle exec rbg stop -c #{root}/#{options[:config_file]} -E #{environment}") }
|
79
|
+
restart { system("bundle exec rbg restart -c #{root}/#{options[:config_file]} -E #{environment}") }
|
81
80
|
end
|
82
81
|
|
83
82
|
# A shortcut method for defining a unicorn
|
84
83
|
def unicorn(options = {})
|
85
|
-
options[:config_file]
|
86
|
-
options[:pid_path]
|
87
|
-
start { system("bundle exec unicorn -D -c #{root}/#{options[:config_file]}") }
|
84
|
+
options[:config_file] ||= "config/unicorn.rb"
|
85
|
+
options[:pid_path] ||= "log/unicorn.pid"
|
86
|
+
start { system("bundle exec unicorn -D -E #{environment} -c #{root}/#{options[:config_file]}") }
|
88
87
|
stop { system("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
89
88
|
restart { system("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
90
89
|
end
|
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.
|
4
|
+
version: 1.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A very very simple library for starting/stopping/restarting processes
|
15
15
|
for a Ruby application
|
@@ -28,8 +28,6 @@ files:
|
|
28
28
|
- lib/procman/capistrano.rb
|
29
29
|
- LICENCE
|
30
30
|
- Procfile.template
|
31
|
-
- procman-1.6.2.gem
|
32
|
-
- procman-1.6.3.gem
|
33
31
|
- procman.gemspec
|
34
32
|
- README.md
|
35
33
|
homepage: http://atechmedia.com
|
data/procman-1.6.2.gem
DELETED
Binary file
|
data/procman-1.6.3.gem
DELETED
Binary file
|