Skip to content

Commit

Permalink
Merge pull request #377 from ruizink/fix_travis_ci_build
Browse files Browse the repository at this point in the history
Update bundler that comes with Travis' ruby 2.1.0.
  • Loading branch information
JJ Asghar committed Jun 6, 2016
2 parents 1253a71 + 205d90a commit 86feb96
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
sudo: false

language: ruby
# Travis: Bundler that comes with Ruby 2.1.0 is too old (1.6.9)
before_install: gem update bundler
bundler_args: --without kitchen_vagrant
rvm:
- 2.1.0
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require 'cookstyle'
# Style tests. Rubocop and Foodcritic
namespace :style do
desc 'Run Ruby style checks'
RuboCop::RakeTask.new do |task|
RuboCop::RakeTask.new(:ruby) do |task|
task.options << '--display-cop-names'
end

Expand Down
2 changes: 2 additions & 0 deletions providers/parameter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

include Opscode::RabbitMQ

use_inline_resources

def parameter_exists?(vhost, name)
cmd = 'rabbitmqctl list_parameters'
cmd << " -p #{Shellwords.escape vhost}" unless vhost.nil?
Expand Down
2 changes: 2 additions & 0 deletions providers/policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

include Opscode::RabbitMQ

use_inline_resources

def policy_exists?(vhost, name)
cmd = 'rabbitmqctl list_policies'
cmd << " -p #{Shellwords.escape vhost}" unless vhost.nil?
Expand Down
2 changes: 2 additions & 0 deletions providers/vhost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

include Opscode::RabbitMQ

use_inline_resources

def vhost_exists?(name)
cmd = "rabbitmqctl -q list_vhosts | grep ^#{name}$"
cmd = Mixlib::ShellOut.new(cmd)
Expand Down
1 change: 0 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class Chef::Resource
# socat is a package dependency of rabbitmq-server
package 'socat'


# => Prevent Debian systems from automatically starting RabbitMQ after dpkg install
dpkg_autostart node['rabbitmq']['service_name'] do
allow false
Expand Down

0 comments on commit 86feb96

Please sign in to comment.