Merge pull request #211 from mhaskel/spec_updates

Update spec_helper for consistency
This commit is contained in:
Ashley Penney 2014-08-28 17:39:54 -04:00
commit 42fb96e6f7

View file

@ -2,11 +2,12 @@ require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
else
install_puppet
end
# This will install the latest available package on el and deb based
# systems fail on windows and osx, and install via gem on other *nixes
foss_opts = { :default_action => 'gem_install' }
if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
hosts.each do |host|
on hosts, "mkdir -p #{host['distmoduledir']}"
end