mina-push-core 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina_push_core/tasks.rb +6 -6
- data/lib/mina_push_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c11095d6ae1e38bc7fbc99b80c99e20aa4401c95
|
4
|
+
data.tar.gz: d06fe9d86379555d44793cde037fa3b44d7ad8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6be213aee0559fe1dd9cf36b8edd77cf2532ed0c262e3a8b05badf0e7095c8ef021ab47bf8c6c4af6691a6460813045e1dec7a3b9a258ea3682964d4900aa778
|
7
|
+
data.tar.gz: 960dce8eee49a5593aaffbe35594b3be937c474a8681de7c6d1ee5355c0d48bd879a4ed5f2e83f419f5aee796acccb009e3c052e4104d9a1cde6add7370e7c49
|
data/lib/mina_push_core/tasks.rb
CHANGED
@@ -38,18 +38,18 @@ set_default :push_core, lambda { "#{bundle_bin} exec push" }
|
|
38
38
|
# To disable logging set it to "/dev/null"
|
39
39
|
set_default :push_core_log, lambda { "#{deploy_to}/#{current_path}/log/push_core.log" }
|
40
40
|
|
41
|
-
# ###
|
42
|
-
# Sets the path to the pid file of a
|
41
|
+
# ### push_core_pid
|
42
|
+
# Sets the path to the pid file of a push_core worker
|
43
43
|
set_default :push_core_pid, lambda { "#{deploy_to}/#{shared_path}/pids/push_core.pid" }
|
44
44
|
|
45
|
-
# ###
|
46
|
-
# Sets the number of
|
45
|
+
# ### push_core_processes
|
46
|
+
# Sets the number of push_core processes launched
|
47
47
|
set_default :push_core_processes, 1
|
48
48
|
|
49
49
|
# ## Control Tasks
|
50
50
|
namespace :push_core do
|
51
51
|
def for_each_process(&block)
|
52
|
-
|
52
|
+
push_core_processes.times do |idx|
|
53
53
|
pid_file = if idx == 0
|
54
54
|
push_core_pid
|
55
55
|
else
|
@@ -78,7 +78,7 @@ namespace :push_core do
|
|
78
78
|
# ### push_core:start
|
79
79
|
desc "Start push_core"
|
80
80
|
task :start => :environment do
|
81
|
-
queue %[echo "-----> Start
|
81
|
+
queue %[echo "-----> Start push_core"]
|
82
82
|
for_each_process do |pid_file, idx|
|
83
83
|
queue %{
|
84
84
|
cd "#{deploy_to}/#{current_path}"
|