capistrano-sidekiq 0.3.1 → 0.3.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: 3fa9749bb508b12db84f3c96f72d4b8d901c070b
4
- data.tar.gz: bf34a6068efafbe99f1618937a0cfb919cad321b
3
+ metadata.gz: 8df38d1da01a9d56b5aebeb515a86f85df45d0d1
4
+ data.tar.gz: 228b81c8e7f0607ee75fad8eb2a22f0ffd7b987b
5
5
  SHA512:
6
- metadata.gz: 9948837c09108d83c48f46849e744e7c4155cc26590723bf97732bb5cccdbe254ec0511add250cfae8bf06730bff685e3e426825c0f202ed183dcac8b6936899
7
- data.tar.gz: e582c209655f15df106c2a77301dc6ad0b80c2760d716afd0492537958c6e436bc35a89cc62089d3d955cbe1cacd416f82dc416d75342e01c16cb82e314eb7c5
6
+ metadata.gz: bcff748b9934123abe41995bea425e97d0fbb72065a960ebba5bfb0a5489aa75df969fc6bceb7e7d7aa905c10ba5402a8ed221e5e861086ff61082148d242e01
7
+ data.tar.gz: 85e06ba12c6bcfb348f8c20f466a496836cd7d2d62cf98d234e5ea7a543e5b96a07ba41d0bdb07d5a903b3560fc30e6bb97bcabf15adbba0f747f63cd57b9ac2
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sidekiq
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
@@ -84,7 +84,9 @@ namespace :sidekiq do
84
84
  args.push "--logfile #{fetch(:sidekiq_log)}" if fetch(:sidekiq_log)
85
85
  args.push "--require #{fetch(:sidekiq_require)}" if fetch(:sidekiq_require)
86
86
  args.push "--tag #{fetch(:sidekiq_tag)}" if fetch(:sidekiq_tag)
87
- args.push "--queue #{fetch(:sidekiq_queue)}" if fetch(:sidekiq_queue)
87
+ Array(fetch(:sidekiq_queue)).each do |queue|
88
+ args.push "--queue #{queue}"
89
+ end
88
90
  args.push "--config #{fetch(:sidekiq_config)}" if fetch(:sidekiq_config)
89
91
  args.push "--concurrency #{fetch(:sidekiq_concurrency)}" if fetch(:sidekiq_concurrency)
90
92
  # use sidekiq_options for special options
@@ -190,14 +192,14 @@ namespace :sidekiq do
190
192
 
191
193
  def template_sidekiq(from, to, role)
192
194
  [
193
- File.join('lib', 'capistrano', 'templates', "#{from}-#{role.hostname}-#{fetch(:stage)}.rb"),
194
- File.join('lib', 'capistrano', 'templates', "#{from}-#{role.hostname}.rb"),
195
- File.join('lib', 'capistrano', 'templates', "#{from}-#{fetch(:stage)}.rb"),
196
- File.join('lib', 'capistrano', 'templates', "#{from}.rb.erb"),
197
- File.join('lib', 'capistrano', 'templates', "#{from}.rb"),
198
- File.join('lib', 'capistrano', 'templates', "#{from}.erb"),
199
- File.expand_path("../../templates/#{from}.rb.erb", __FILE__),
200
- File.expand_path("../../templates/#{from}.erb", __FILE__)
195
+ File.join('lib', 'capistrano', 'templates', "#{from}-#{role.hostname}-#{fetch(:stage)}.rb"),
196
+ File.join('lib', 'capistrano', 'templates', "#{from}-#{role.hostname}.rb"),
197
+ File.join('lib', 'capistrano', 'templates', "#{from}-#{fetch(:stage)}.rb"),
198
+ File.join('lib', 'capistrano', 'templates', "#{from}.rb.erb"),
199
+ File.join('lib', 'capistrano', 'templates', "#{from}.rb"),
200
+ File.join('lib', 'capistrano', 'templates', "#{from}.erb"),
201
+ File.expand_path("../../templates/#{from}.rb.erb", __FILE__),
202
+ File.expand_path("../../templates/#{from}.erb", __FILE__)
201
203
  ].each do |path|
202
204
  if File.file?(path)
203
205
  erb = File.read(path)
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.3.1
4
+ version: 0.3.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: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano