Skip to content

Commit

Permalink
Call install_* methods only once in spec_helper_acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
justinstoller committed Aug 8, 2014
1 parent 33b456b commit d085275
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@


unless ENV['RS_PROVISION'] == 'no'
foss_opts = { :version => '3.6.2',
:facter_version => '2.1.0',
:hiera_version => '1.3.4',
:default_action => 'gem_install' }

if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end

hosts.each do |host|
if host['platform'] =~ /debian/
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
end
if host.is_pe?
install_pe
else
install_puppet
on host, "mkdir -p #{host['distmoduledir']}"
end

on host, "mkdir -p #{host['distmoduledir']}"
end
end

Expand Down

0 comments on commit d085275

Please sign in to comment.