capistrano-sidekiq 0.2.9 → 0.3.0

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: 74ef6b9511af05b398cd0fdd5cca3bacb91f1be5
4
- data.tar.gz: ada7d3f58417c5b5308d45d948c175de100ca9ea
3
+ metadata.gz: 0d42d9e4d8ee5912152d936cca62104f3c72c1d3
4
+ data.tar.gz: 6c6802d6024cd23e4113f659e0edc52c86a9d0e8
5
5
  SHA512:
6
- metadata.gz: f71a57fe8edb9e2d8d7b45e535550f740c79feafad72800a52a71ad5e242561f6e1ebc0416f6ace21a305ed36c6a4b3b0d191487bd8218d4adb1f307a93e6fe8
7
- data.tar.gz: 6141fae6d8f7f139d086ea616bd92964c7cdab621ec835a246459e0d5a6fd9db0d4422d0ae2120c43b13574ff5dbfe5af8ad765326e884a234630797f608f2a3
6
+ metadata.gz: e10a1d05f32ffedf2a1a726530f365f4dd389fe388882bf00438251c35bef91d01d73ac47c88bea6476ff9a4895ded6a6d0125a17b0208b9d08a66ba3c052ea7
7
+ data.tar.gz: 7e17ba8b8ebc3c15ac41ddcb9c5ff02eef3c6eae1304464f970a5cba348342a8a9340f5d9a83bb05be81114cdc5b7e20cd21379f3a099776435cf1dd26062f8b
data/README.md CHANGED
@@ -48,6 +48,8 @@ Configurable options, shown here with defaults:
48
48
  :sidekiqctl_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiqctl" # Only for capistrano2.5
49
49
  ```
50
50
  ## Changelog
51
+ - 0.3.0: Fix monit task @andreygerasimchuk
52
+ - 0.2.9: Check if current directory exist @alexdunae
51
53
  - 0.2.8: Added :sidekiq_queue & :sidekiq_config
52
54
  - 0.2.7: Signal usage @penso
53
55
  - 0.2.6: sidekiq:start check if sidekiq is running
@@ -61,6 +63,7 @@ Configurable options, shown here with defaults:
61
63
  - [Jérémy Lecour] (https://github.com/jlecour)
62
64
  - [Fabien Penso] (https://github.com/penso)
63
65
  - [Alex Dunae] (https://github.com/alexdunae)
66
+ - [andreygerasimchuk] (https://github.com/andreygerasimchuk)
64
67
 
65
68
  ## Contributing
66
69
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sidekiq
3
- VERSION = '0.2.9'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -20,35 +20,45 @@ namespace :sidekiq do
20
20
  desc 'Monitor Sidekiq monit-service'
21
21
  task :monitor do
22
22
  on roles(fetch(:sidekiq_role)) do
23
- sudo "#{fetch(:monit_bin)} monitor #{sidekiq_service_name(index)}"
23
+ fetch(:sidekiq_processes).times do |idx|
24
+ sudo "#{fetch(:monit_bin)} monitor #{sidekiq_service_name(idx)}"
25
+ end
24
26
  end
25
27
  end
26
28
 
27
29
  desc 'Unmonitor Sidekiq monit-service'
28
30
  task :unmonitor do
29
31
  on roles(fetch(:sidekiq_role)) do
30
- sudo "#{fetch(:monit_bin)} unmonitor #{sidekiq_service_name(index)}"
32
+ fetch(:sidekiq_processes).times do |idx|
33
+ sudo "#{fetch(:monit_bin)} unmonitor #{sidekiq_service_name(idx)}"
34
+ end
31
35
  end
32
36
  end
33
37
 
34
38
  desc 'Disable Sidekiq monit-service'
35
39
  task :start do
36
40
  on roles(fetch(:sidekiq_role)) do
37
- sudo "#{fetch(:monit_bin)} start #{sidekiq_service_name(index)}"
41
+ fetch(:sidekiq_processes).times do |idx|
42
+ sudo "#{fetch(:monit_bin)} start #{sidekiq_service_name(idx)}"
43
+ end
38
44
  end
39
45
  end
40
46
 
41
47
  desc 'Disable Sidekiq monit-service'
42
48
  task :stop do
43
49
  on roles(fetch(:sidekiq_role)) do
44
- sudo "#{fetch(:monit_bin)} stop #{sidekiq_service_name(index)}"
50
+ fetch(:sidekiq_processes).times do |idx|
51
+ sudo "#{fetch(:monit_bin)} stop #{sidekiq_service_name(idx)}"
52
+ end
45
53
  end
46
54
  end
47
55
 
48
56
  desc 'Disable Sidekiq monit-service'
49
57
  task :restart do
50
58
  on roles(fetch(:sidekiq_role)) do
51
- sudo "#{fetch(:monit_bin)} restart #{sidekiq_service_name(index)}"
59
+ fetch(:sidekiq_processes).times do |idx|
60
+ sudo "#{fetch(:monit_bin)} restart #{sidekiq_service_name(idx)}"
61
+ end
52
62
  end
53
63
  end
54
64
 
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.2.9
4
+ version: 0.3.0
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-05-12 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano