capistrano-resque-pool 0.1.2 → 0.2.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
- SHA1:
3
- metadata.gz: 294e074d4c929bf99fd3ce91fa135ec2008850e9
4
- data.tar.gz: c9b84652a14945b3c6178c60de929fa4c2255925
2
+ SHA256:
3
+ metadata.gz: 3b14417040add17b019690f1e3c79996b29cb4a5304af4e17e23cc5a8564900e
4
+ data.tar.gz: 04efae09b6a34325d62ed187825ebd64b733bbde765bf665808a6c88c2b3fa43
5
5
  SHA512:
6
- metadata.gz: ad89d4796f5eca8d738d560469fb3e9e9c8c4c8475704eba0d4e983d6f9352d62b916bbe1b797690f8d6d4c34af620ce20372ceac3902b8b96b96ee18d42dcbe
7
- data.tar.gz: 6e0b82780ec24dc4ded79f2bac7dbf65b82aa03f0241a7c6596137f78c9d82a684e6752a3b783f0f9d2e7854f00b16f339c590daad3d1dc34dcf29c38827bfe3
6
+ metadata.gz: 9030af48248c5e3b1762a77b8005bf9a05fa6ae4de9d2f9b11a91f3a7cb56165a8d3aada57da1875b666ac079ebc8d98fad8581b8fbc148234b3ce57a6e1fc10
7
+ data.tar.gz: e97c559428dc19c657b2c1db64730577f03a38bf0e9804700e37b1375ee871a8cc56ba4120ede06d4c9e925a34e3dd0d0c18abb55d6a680967fb8bba3098d709
data/README.md CHANGED
@@ -59,6 +59,10 @@ Gracefully shut down workers, Gracefully shut down manager, start a new manager
59
59
 
60
60
  bundle exec cap production resque:pool:full_restart
61
61
 
62
+ Leave the old pool running and start a new pool, Shut down other pools after the workers have started for the new pool
63
+
64
+ bundle exec cap production resque:pool:hot_swap
65
+
62
66
 
63
67
  ## Contributing
64
68
 
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Resque
3
3
  module Pool
4
- VERSION = '0.1.2'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
7
7
  end
@@ -16,6 +16,15 @@ namespace :resque do
16
16
  end
17
17
  end
18
18
 
19
+ desc 'Swap in a new pool, then shut down the old pool'
20
+ task :hot_swap do
21
+ on roles(workers) do
22
+ within app_path do
23
+ execute :bundle, :exec, 'resque-pool', "--daemon --hot-swap --environment #{rails_env}"
24
+ end
25
+ end
26
+ end
27
+
19
28
  desc 'Gracefully shut down workers and shutdown the manager after all workers are done'
20
29
  task :stop do
21
30
  on roles(workers) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-resque-pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Abramchuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-26 00:00:00.000000000 Z
12
+ date: 2019-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -102,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.5.1
105
+ rubygems_version: 3.0.6
107
106
  signing_key:
108
107
  specification_version: 4
109
108
  summary: Capistrano integration for Resque pool