sidekiq-runner 0.1.4 → 0.1.5

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: 57a4e9f7dfaa5e130c98c69f2d05a852d696af26
4
- data.tar.gz: 3093eff6494a39f44bdaea11d848a27384133c3f
3
+ metadata.gz: 40e3ccfb608ce10065ae202f0c2115beb6d12731
4
+ data.tar.gz: 666ab8b6d2581309f11c082848bbb24e5e2ec1f8
5
5
  SHA512:
6
- metadata.gz: d51beac3bd2f37585ab90441458acf2d30c4f818cc50444a0956cd6d8424e039aa2571da42be1d560201fc3d355fd183a95f1808f9bfead9d1aa40753b979e00
7
- data.tar.gz: 05696ee4c2ee05ab4ef78e8e495d32da443aaad81e9d52ea2d721e500ffcde2a878dd7e1a6db43a91b4215cc686487c5f7e8a66545026ff74d61eb17ae2b14c5
6
+ metadata.gz: 070bba932a4942753c19bf5e585da2f600bae70d89d757dd5989a8e7ac71cb13f30b91d02773f0128b733e225d75747e53e4f7b41f2f03e5fc3fc7e950d9501a
7
+ data.tar.gz: 992af79e5d6b807afeaef9382b68fb6a7376e43d85dbf73636373318ff0358ce01225267e69700dc1dc306aba284a43fa46968305bdea2be717d77060ce9ba5b
@@ -21,6 +21,10 @@ sidekiq_config.each do |name, skiq|
21
21
  w.pid_file = skiq.pidfile
22
22
  w.behavior(:clean_pid_file)
23
23
 
24
+ # Set uid/gid if requested.
25
+ w.uid = skiq.uid if skiq.uid
26
+ w.gid = skiq.gid if skiq.gid
27
+
24
28
  # Working directory has to be set properly.
25
29
  # Be aware that by default, God sets the working directory to / (root dir).
26
30
  w.dir = skiq.chdir || (defined?(Rails) ? Rails.root : Dir.pwd)
@@ -4,7 +4,7 @@ module SidekiqRunner
4
4
  RUNNER_ATTRIBUTES = [:bundle_env, :chdir, :requirefile]
5
5
  RUNNER_ATTRIBUTES.each { |att| attr_accessor att }
6
6
 
7
- CONFIG_FILE_ATTRIBUTES = [:concurrency, :verbose, :pidfile, :logfile, :tag, :rbtrace]
7
+ CONFIG_FILE_ATTRIBUTES = [:concurrency, :verbose, :pidfile, :logfile, :tag, :rbtrace, :uid, :gid]
8
8
  CONFIG_FILE_ATTRIBUTES.each { |att| attr_accessor att }
9
9
 
10
10
  attr_reader :name, :queues
@@ -24,6 +24,8 @@ module SidekiqRunner
24
24
  @verbose = false
25
25
  @tag = name
26
26
  @rbtrace = false
27
+ @uid = nil
28
+ @gid = nil
27
29
  end
28
30
 
29
31
  def add_queue(queue_name, weight = 1)
@@ -1,3 +1,3 @@
1
1
  module SidekiqRunner
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.5.2
76
+ rubygems_version: 2.4.5
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Sidekiq configuration and rake tasks