capistrano-sidekiq 1.0.1 → 1.0.2

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: 26aff29f42bea923b68df1bb882bd0ae1a4289ee
4
- data.tar.gz: b512116ee2722510550958339899136abb399958
3
+ metadata.gz: de33c4866848767330e460a97d79f5f1d893a097
4
+ data.tar.gz: 66c5d04a7c20407109c58d94f9ec753aae609f2a
5
5
  SHA512:
6
- metadata.gz: 8b8b90a8bfd058f771270b665bf6c76d43a99312f85ce64ffaf8e6ae01ce14e3f6029f1831f99cb9cf6df926df2ce4c9bade86ee6283a06b1093f9e426d0db05
7
- data.tar.gz: 6ab3ce241dcc7d8c66ee5e017290187b7d8ed6afc8198c416262c5f3d48d17012d3d970db8a5f4a85773566ed009b0924618a3b28031903470bae19759e428f6
6
+ metadata.gz: b6e2fb6a18bdeefcc701b4117f98a526f8b2480e2aa9c06aa2aa9fc8dcf593a427724a2daefe65e2eb880c2d6e15b321f9bc05cd7de5bdbda406274959499ba4
7
+ data.tar.gz: 8e03edcb511a08082e157e07622ecbb49068d205a8715b6debb019df8f757bf8ea771fc511cf239daab109a40028888bda2d09cf08eb64d90d73494edaa4977a
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+ - Fix deployment flow hooks
5
+
3
6
  ## 1.0.1
4
7
  - Add deploy failure handling @phillbaker
5
8
  - Support custom monit filename @zocoi
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- SidekiqVERSION = '1.0.1'
2
+ SidekiqVERSION = '1.0.2'
3
3
  end
@@ -27,20 +27,14 @@ namespace :deploy do
27
27
  before :starting, :check_sidekiq_hooks do
28
28
  invoke 'sidekiq:add_default_hooks' if fetch(:sidekiq_default_hooks)
29
29
  end
30
- after :publishing, :restart_sidekiq do
31
- invoke 'sidekiq:restart' if fetch(:sidekiq_default_hooks)
32
- end
33
- after :failed, :restart_sidekiq do
34
- invoke 'sidekiq:restart' if fetch(:sidekiq_default_hooks)
35
- end
36
30
  end
37
31
 
38
32
  namespace :sidekiq do
39
33
  task :add_default_hooks do
40
34
  after 'deploy:starting', 'sidekiq:quiet'
41
35
  after 'deploy:updated', 'sidekiq:stop'
42
- after 'deploy:reverted', 'sidekiq:stop'
43
36
  after 'deploy:published', 'sidekiq:start'
37
+ after 'deploy:failed', 'sidekiq:restart'
44
38
  end
45
39
 
46
40
  desc 'Quiet sidekiq (stop fetching new tasks from Redis)'
@@ -104,7 +98,7 @@ namespace :sidekiq do
104
98
  desc 'Restart sidekiq'
105
99
  task :restart do
106
100
  invoke! 'sidekiq:stop'
107
- invoke 'sidekiq:start'
101
+ invoke! 'sidekiq:start'
108
102
  end
109
103
 
110
104
  desc 'Rolling-restart sidekiq'
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: 1.0.1
4
+ version: 1.0.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: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano