From: Morgan Haskel Date: Fri, 12 Dec 2014 20:53:18 +0000 (-0800) Subject: Use puppet() instead of shell() to install module dependencies X-Git-Tag: 1.8.0~30^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=342b90f4cc2d57202d2fdb1f7136e1bb062c6130;p=puppet-modules%2Fpuppetlabs-apt.git Use puppet() instead of shell() to install module dependencies --- diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index a523bb8..6b2aa5d 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -28,7 +28,7 @@ RSpec.configure do |c| hosts.each do |host| copy_module_to(host, :source => proj_root, :module_name => 'apt') shell("/bin/touch #{default['puppetpath']}/hiera.yaml") - shell('puppet module install puppetlabs-stdlib --version 2.2.1', { :acceptable_exit_codes => [0,1] }) + on host, puppet('module install puppetlabs-stdlib --version 2.2.1'), { :acceptable_exit_codes => [0,1] } end end end