capistrano-rpush 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 545dd08ca9d57c62822a9dc2851fcb418ba53206
4
- data.tar.gz: 4fd3c3384d713a6a378f9fa53297a7d15fd1bf6c
3
+ metadata.gz: f521cbf1b1ce626c108f9e6b76d7375fd4191866
4
+ data.tar.gz: d40849e559d5e16fa313a68d287ddc481a4260d6
5
5
  SHA512:
6
- metadata.gz: 50fd2c27107c2171383cf87d95e8b67b4f5d263b30edd8545f1c165360bd9e888360555ab46c59e7afe7a49ba2eb88183dc62dd2e4872554fd7a613588aa1cb4
7
- data.tar.gz: e1527e56036c24e84319c2d2be562547b454b54c9be9dc64381225bac5390f2347d8a6f71eeb3662a5e1bd0c9a53af28b135035a3be540917f257fd77a168d9e
6
+ metadata.gz: 0b2838fc246d4ee6f0b6228a1798a576f53919ee41c1f28f5f16a73dbdae0f102fcd6e5e7b1556cbf4e5c15ed65b2b954d3181f5fc32c865a3ed20419a756874
7
+ data.tar.gz: e103457fdd7b0bb8dfc1796712d1a7b62c9616906f1dc61edf1a13f2858bc65b8d32ddb8b774d17537a2c1c5ad0da0183fc11d2c5b11bd49172991d16a9a7cf2
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rpush
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -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', 'initializers', 'rpush.rb') }
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 :rpush, "start -p #{fetch(:rpush_pid)} -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
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
- unless test "[ -f #{fetch(:rpush_conf)} ]"
67
+ if test "[ -f #{fetch(:rpush_conf)} ]"
68
68
  within current_path do
69
69
  with rack_env: fetch(:rpush_env) do
70
- execute :rpush, "status -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
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 :rpush, "stop -p #{fetch(:rpush_pid)} -c #{fetch(:rpush_conf)} -e #{fetch(:rpush_env)}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mel Riffe