resque-forker 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 2010-09-07 v1.2 Capistrano role is worker, not workers
2
+
1
3
  2010-09-06 v1.2 Capistrano task and script/trigger
2
4
 
3
5
  Added Capistrano tasks for pausing, resuming, reloading and listing worker
@@ -1,7 +1,7 @@
1
1
  # Capistrano task for Resque::Forker.
2
2
  #
3
3
  # To use these tasks, require "resque/capistrano" at the top of the Capfile and
4
- # associate your woker instances with the role 'workers'.
4
+ # associate your woker instances with the role 'worker'.
5
5
  #
6
6
  # Performs workers:reload after deploy:restart, workers:suspend before
7
7
  # deploy:web:disable and workers:resume after deploy:web:enable.
@@ -12,19 +12,19 @@ Capistrano::Configuration.instance(:must_exist).load do
12
12
 
13
13
  namespace :workers do
14
14
  desc "Suspend all resque workers"
15
- task :suspend, :roles=>:workers do
15
+ task :suspend, :roles=>:worker do
16
16
  run "status workers | cut -d ' ' -f 4 | xargs kill -USR2"
17
17
  end
18
18
  desc "Resume all workers that have been paused"
19
- task :resume, :roles=>:workers do
19
+ task :resume, :roles=>:worker do
20
20
  run "status workers | cut -d ' ' -f 4 | xargs kill -CONT"
21
21
  end
22
22
  desc "Reload all workers"
23
- task :reload, :roles=>:workers do
23
+ task :reload, :roles=>:worker do
24
24
  run "reload workers"
25
25
  end
26
26
  desc "List Resque processes"
27
- task :pids, :roles=>:workers do
27
+ task :pids, :roles=>:worker do
28
28
  puts capture("ps aux | grep [r]esque")
29
29
  end
30
30
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "resque-forker"
3
- spec.version = "1.2.0"
3
+ spec.version = "1.2.1"
4
4
  spec.author = "Assaf Arkin"
5
5
  spec.email = "assaf@labnotes.org"
6
6
  spec.homepage = "http://github.com/flowtown/resque-forker"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-forker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Assaf Arkin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-06 00:00:00 -07:00
18
+ date: 2010-09-07 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -58,7 +58,7 @@ licenses: []
58
58
  post_install_message: ""
59
59
  rdoc_options:
60
60
  - --title
61
- - Resque Forker 1.2.0
61
+ - Resque Forker 1.2.1
62
62
  - --main
63
63
  - README.rdoc
64
64
  - --webcvs