capistrano3-delayed-job 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/capistrano3-delayed-job.gemspec +1 -1
- data/lib/capistrano/tasks/delayed-job.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c7f90ad8056cf4e5fab5adbf103f345bbd852d
|
4
|
+
data.tar.gz: 16350e2266ff3b5a3f10856e44be9fee854b5ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68a1880fc4fa71af7eff2dfb580fbfafeebc6a8311aa88f7af5b5e4fabdbb3ea0a7913bc675a6f4838af46da709751d706503e2900bb3e8f686a6159fd8db5a
|
7
|
+
data.tar.gz: 05aa4e98ca5caa805eb1605488514a8dac05376b2db3a98be16d83b89983535086a23d7457fe86bcbcae058aba13da776f781b9be92ef626680cf6a71870ad02
|
data/README.md
CHANGED
@@ -40,6 +40,11 @@ Configurable options (copy into deploy.rb), shown here with examples:
|
|
40
40
|
# default value: 1
|
41
41
|
set :delayed_job_workers, 2
|
42
42
|
|
43
|
+
# String to be prefixed to worker process names
|
44
|
+
# This feature allows a prefix name to be placed in front of the process.
|
45
|
+
# For example: reports/delayed_job.0 instead of just delayed_job.0
|
46
|
+
set :delayed_job_prefix, :reports
|
47
|
+
|
43
48
|
# Delayed_job queue or queues
|
44
49
|
# Set the --queue or --queues option to work from a particular queue.
|
45
50
|
# default value: nil
|
@@ -61,7 +66,7 @@ set :delayed_job_roles, [:app, :background]
|
|
61
66
|
# Set the location of the delayed_job executable
|
62
67
|
# Can be relative to the release_path or absolute
|
63
68
|
# default value 'bin'
|
64
|
-
set :delayed_job_bin_path
|
69
|
+
set :delayed_job_bin_path, 'script' # for rails 3.x
|
65
70
|
```
|
66
71
|
|
67
72
|
It also adds the following hook
|
@@ -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 = "capistrano3-delayed-job"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.3.0"
|
8
8
|
spec.authors = ["Juan Ignacio Donoso", "Agustin Feuerhake", "Ignacio Baixas"]
|
9
9
|
spec.email = ["juan.ignacio@platan.us", "agustin@platan.us", "ignacio@platanus"]
|
10
10
|
spec.summary = %q{Adds support for delayed_jobs to Capistrano 3.x}
|
@@ -4,6 +4,7 @@ namespace :delayed_job do
|
|
4
4
|
args = []
|
5
5
|
args << "-n #{fetch(:delayed_job_workers)}" unless fetch(:delayed_job_workers).nil?
|
6
6
|
args << "--queues=#{fetch(:delayed_job_queues).join(',')}" unless fetch(:delayed_job_queues).nil?
|
7
|
+
args << "--prefix=#{fetch(:delayed_job_prefix)}" unless fetch(:delayed_job_prefix).nil?
|
7
8
|
args << fetch(:delayed_job_pools, {}).map {|k,v| "--pool=#{k}:#{v}"}.join(' ') unless fetch(:delayed_job_pools).nil?
|
8
9
|
args.join(' ')
|
9
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-delayed-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|