Skip to content

Commit

Permalink
fixed some rubocops
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Jul 17, 2015
1 parent b29bdb0 commit 4660a89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ rabbitmq Cookbook CHANGELOG
===========================
This file is used to list changes made in each version of the rabbitmq cookbook.

v4.0.1 (2015-06-16)
v4.1.2 (2015-06-16)
--------------------
- Stupid Rubocop

v4.1.1 (2015-06-16)
--------------------
- Fix single quote and nil issues with cluster recipe #274
- Fixed 'rabbitmqctl eval' command for old rabbitmq versions #272
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'Apache 2.0'
description 'Installs and configures RabbitMQ server'
version '4.1.1'
version '4.1.2'
recipe 'rabbitmq', 'Install and configure RabbitMQ'
recipe 'rabbitmq::cluster', 'Set up RabbitMQ clustering.'
recipe 'rabbitmq::plugin_management', 'Manage plugins with node attributes'
Expand Down
4 changes: 2 additions & 2 deletions providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def user_exists?(name)
end
end

def user_has_tag?(name, tag)
cmd = "rabbitmqctl -q list_users"
def user_has_tag?(name, tag) # rubocop:disable all
cmd = 'rabbitmqctl -q list_users'
cmd = Mixlib::ShellOut.new(cmd)
cmd.environment['HOME'] = ENV.fetch('HOME', '/root')
cmd.run_command
Expand Down

0 comments on commit 4660a89

Please sign in to comment.