capistrano-sidekiq 0.1.1 → 0.1.2
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/README.md +1 -0
- data/lib/capistrano/sidekiq/version.rb +1 -1
- data/lib/capistrano/tasks/sidekiq.cap +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e13057ec1952c8223e035db208b2c554f6af21ce
|
4
|
+
data.tar.gz: c40728a2c9d6870059b2e799f51cb71f9d1a1248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ab1fd0be963e6f318dd3cd2e4f7b8954eafa64dfb031ca2a5fc618d299acb7eb19ca71e96185451fe6205aae8ad4c3d217b3e2b8e11c8ac36558470c7be310
|
7
|
+
data.tar.gz: e2389170d3d012b585faf7fb1089ff09be30cc10cb8207f73c786b8a1198aee93dfc477eb38f1fc3c7a1272deadb67847ed703369c229ffcd783206899d86eee
|
data/README.md
CHANGED
@@ -45,6 +45,15 @@ namespace :sidekiq do
|
|
45
45
|
execute :bundle, :exec, :sidekiqctl, 'stop', "#{pid_file}", fetch(:sidekiq_timeout)
|
46
46
|
end
|
47
47
|
|
48
|
+
def quit_sidekiq(pid_file)
|
49
|
+
begin
|
50
|
+
execute :bundle, :exec, :sidekiqctl, 'quiet', "#{pid_file}"
|
51
|
+
rescue SSHKit::Command::Failed
|
52
|
+
# If gems are not installed eq(first deploy) and sidekiq_default_hooks as active
|
53
|
+
warn 'sidekiqctl not found (ignore if this is the first deploy)'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
48
57
|
def start_sidekiq(pid_file, idx = 0)
|
49
58
|
args = []
|
50
59
|
args.push "--index #{idx}"
|
@@ -76,7 +85,7 @@ namespace :sidekiq do
|
|
76
85
|
for_each_process(true) do |pid_file, idx|
|
77
86
|
if test("[ -f #{pid_file} ]") and test("kill -0 $( cat #{pid_file} )")
|
78
87
|
within current_path do
|
79
|
-
|
88
|
+
quit_sidekiq(pid_file)
|
80
89
|
end
|
81
90
|
end
|
82
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|