Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Fixed sidekiq config builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Rzegocki committed Apr 25, 2016
1 parent 82b25ec commit a32b410
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@

## sidekiq

default['defaults']['worker']['config'] = { 'concurency' => 5, 'verbose' => false, 'queues' => ['default'] }
default['defaults']['worker']['config'] = { 'concurrency' => 5, 'verbose' => false, 'queues' => ['default'] }
2 changes: 1 addition & 1 deletion libraries/drivers_worker_sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def environment
end

def configuration
JSON.parse(out[:config].stringify_keys.to_json)
JSON.parse(out[:config].to_json, symbolize_names: true)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/configure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@
it 'creates sidekiq.conf.yml' do
expect(chef_run)
.to render_file("/srv/www/#{aws_opsworks_app['shortname']}/shared/config/sidekiq_1.yml")
.with_content("---\nconcurency: 5\nverbose: false\nqueues:\n- default")
.with_content("---\n:concurrency: 5\n:verbose: false\n:queues:\n- default")
expect(chef_run)
.to render_file("/srv/www/#{aws_opsworks_app['shortname']}/shared/config/sidekiq_2.yml")
.with_content("---\nconcurency: 5\nverbose: false\nqueues:\n- default")
.with_content("---\n:concurrency: 5\n:verbose: false\n:queues:\n- default")
end

it 'creates sidekiq.monitrc conf' do
Expand Down

0 comments on commit a32b410

Please sign in to comment.