capistrano-rpush 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/lib/capistrano/rpush/version.rb +1 -1
- data/lib/capistrano/tasks/rpush.rake +5 -5
- 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: f521cbf1b1ce626c108f9e6b76d7375fd4191866
|
|
4
|
+
data.tar.gz: d40849e559d5e16fa313a68d287ddc481a4260d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b2838fc246d4ee6f0b6228a1798a576f53919ee41c1f28f5f16a73dbdae0f102fcd6e5e7b1556cbf4e5c15ed65b2b954d3181f5fc32c865a3ed20419a756874
|
|
7
|
+
data.tar.gz: e103457fdd7b0bb8dfc1796712d1a7b62c9616906f1dc61edf1a13f2858bc65b8d32ddb8b774d17537a2c1c5ad0da0183fc11d2c5b11bd49172991d16a9a7cf2
|
|
@@ -2,7 +2,7 @@ namespace :load do
|
|
|
2
2
|
set :rpush_default_hooks, -> { true }
|
|
3
3
|
set :rpush_role, :app
|
|
4
4
|
set :rpush_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
|
|
5
|
-
set :rpush_conf, -> { File.join(shared_path, 'config', '
|
|
5
|
+
set :rpush_conf, -> { File.join(shared_path, 'config', 'rpush.rb') }
|
|
6
6
|
set :rpush_log, -> { File.join(shared_path, 'log', 'rpush.log') }
|
|
7
7
|
set :rpush_pid, -> { File.join(shared_path, 'tmp', 'pids', 'rpush.pid') }
|
|
8
8
|
end
|
|
@@ -53,7 +53,7 @@ namespace :rpush do
|
|
|
53
53
|
end
|
|
54
54
|
within current_path do
|
|
55
55
|
with rack_env: fetch(:rpush_env) do
|
|
56
|
-
execute :
|
|
56
|
+
execute :bundle, :exec, "rpush start -p #{fetch(:rpush_pid)} -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
end
|
|
@@ -64,10 +64,10 @@ namespace :rpush do
|
|
|
64
64
|
task :status do
|
|
65
65
|
on roles (fetch(:rpush_role)) do |role|
|
|
66
66
|
rpush_switch_user(role) do
|
|
67
|
-
|
|
67
|
+
if test "[ -f #{fetch(:rpush_conf)} ]"
|
|
68
68
|
within current_path do
|
|
69
69
|
with rack_env: fetch(:rpush_env) do
|
|
70
|
-
execute :
|
|
70
|
+
execute :bundle, :exec, "rpush status -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
end
|
|
@@ -82,7 +82,7 @@ namespace :rpush do
|
|
|
82
82
|
unless test "[ -f #{fetch(:rpush_pid)} ]"
|
|
83
83
|
within current_path do
|
|
84
84
|
with rack_env: fetch(:rpush_env) do
|
|
85
|
-
execute :
|
|
85
|
+
execute :bundle, :exec, "rpush stop -p #{fetch(:rpush_pid)} -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
end
|