capistrano-unformatt 1.4 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/capistrano-unformatt.gemspec +1 -1
- data/lib/capistrano/tasks/sidekiq.rake +2 -2
- data/vendor/templates/sidekiq.daemon.erb +2 -2
- 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: c2918452e86a76b981eb3cafadc8fa96c27790f9
|
4
|
+
data.tar.gz: 502276582f9866f6ae6b3d0e0ba8f510157a0b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce7c77db67e8cacd38f6a4553b3fad6f81e2dbbb7e81734fb4df375501fcb41f2a5f5e0245a24f1eb3bd7c6381c6370fb0ad74a3469b83eee6ddd0dea106a7b7
|
7
|
+
data.tar.gz: 7816fa073c0d5fda5ed658c51404d5716ccd3c07e61c039556982b9eeb17ebd77c09f3177d22c737552a5a637b7cf3cd00661f362e12ff73884c6bb16d6c9080
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-unformatt"
|
7
|
-
spec.version = '1.
|
7
|
+
spec.version = '1.5'
|
8
8
|
spec.authors = ["unformatt"]
|
9
9
|
spec.email = ["unformatt@gmail.com"]
|
10
10
|
spec.description = "Custom recipes for Unformatt projects"
|
@@ -22,9 +22,9 @@ namespace :deploy do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
desc "Rejects new sidekiq jobs"
|
25
|
-
task :
|
25
|
+
task :reject_new_jobs do
|
26
26
|
on roles :app do
|
27
|
-
execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq
|
27
|
+
execute "#{fetch(:daemons_path)}/#{fetch(:application)}-sidekiq reject_new_jobs"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -60,7 +60,7 @@ case "$1" in
|
|
60
60
|
$0 start
|
61
61
|
;;
|
62
62
|
|
63
|
-
|
63
|
+
reject_new_jobs)
|
64
64
|
echo -ne "<%= "Rejecting new jobs #{fetch(:application)}-sidekiq..." %>"
|
65
65
|
|
66
66
|
if [ -z "$(getPID)" ]; then
|
@@ -73,6 +73,6 @@ case "$1" in
|
|
73
73
|
;;
|
74
74
|
|
75
75
|
*)
|
76
|
-
echo "usage: $0 {start|stop|restart|
|
76
|
+
echo "usage: $0 {start|stop|restart|reject_new_jobs}"
|
77
77
|
esac
|
78
78
|
exit 0
|