From 3441bc07fedb635e7682e29583d539dd712ea64c Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Fri, 11 Jul 2014 15:15:34 -0700 Subject: The helper calls host outside of an each loop --- spec/acceptance/beaker_helper.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'spec/acceptance') diff --git a/spec/acceptance/beaker_helper.rb b/spec/acceptance/beaker_helper.rb index 05aa4e7..592b15d 100644 --- a/spec/acceptance/beaker_helper.rb +++ b/spec/acceptance/beaker_helper.rb @@ -12,11 +12,13 @@ test_name "Installing Puppet and vcsrepo module" do end step 'Ensure we can install our module' do - # We ask the host to interpolate it's distmoduledir because we don't - # actually know it on Windows until we've let it redirect us (depending - # on whether we're running as a 32/64 bit process on 32/64 bit Windows - moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp - on host, "mkdir -p #{moduledir}" + hosts.each do |host| + # We ask the host to interpolate it's distmoduledir because we don't + # actually know it on Windows until we've let it redirect us (depending + # on whether we're running as a 32/64 bit process on 32/64 bit Windows + moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp + on host, "mkdir -p #{moduledir}" + end end step 'install module' do -- cgit v1.2.3