procman 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/proc_man.rb +1 -1
- data/lib/proc_man/process.rb +6 -6
- data/procman-1.6.2.gem +0 -0
- metadata +2 -2
- data/procman-1.6.1.gem +0 -0
data/lib/proc_man.rb
CHANGED
data/lib/proc_man/process.rb
CHANGED
@@ -75,18 +75,18 @@ module ProcMan
|
|
75
75
|
def rbg(options = {})
|
76
76
|
options[:config_file] ||= "Rbgfile"
|
77
77
|
options[:environment] ||= "production"
|
78
|
-
start { system("bundle exec rbg start -c #{options[:config_file]} -E #{options[:environment]}") }
|
79
|
-
stop { system("bundle exec rbg stop -c #{options[:config_file]} -E #{options[:environment]}") }
|
80
|
-
restart { system("bundle exec rbg restart -c #{options[:config_file]} -E #{options[:environment]}") }
|
78
|
+
start { system("bundle exec rbg start -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
|
79
|
+
stop { system("bundle exec rbg stop -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
|
80
|
+
restart { system("bundle exec rbg restart -c #{root}/#{options[:config_file]} -E #{options[:environment]}") }
|
81
81
|
end
|
82
82
|
|
83
83
|
# A shortcut method for defining a unicorn
|
84
84
|
def unicorn(options = {})
|
85
85
|
options[:config_file] ||= "config/unicorn.rb"
|
86
86
|
options[:pid_path] ||= "log/unicorn.pid"
|
87
|
-
start { system("bundle exec unicorn -D -c #{options[:config_file]}") }
|
88
|
-
stop { system("kill `cat #{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
89
|
-
restart { system("kill -USR2 `cat #{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
87
|
+
start { system("bundle exec unicorn -D -c #{root}/#{options[:config_file]}") }
|
88
|
+
stop { system("kill `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
89
|
+
restart { system("kill -USR2 `cat #{root}/#{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|
data/procman-1.6.2.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.6.
|
4
|
+
version: 1.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -28,7 +28,7 @@ files:
|
|
28
28
|
- lib/procman/capistrano.rb
|
29
29
|
- LICENCE
|
30
30
|
- Procfile.template
|
31
|
-
- procman-1.6.
|
31
|
+
- procman-1.6.2.gem
|
32
32
|
- procman.gemspec
|
33
33
|
- README.md
|
34
34
|
homepage: http://atechmedia.com
|
data/procman-1.6.1.gem
DELETED
Binary file
|