lib/beaker/dsl/install_utils.rb in beaker-1.4.0 vs lib/beaker/dsl/install_utils.rb in beaker-1.4.1

- old
+ new

@@ -221,16 +221,20 @@ if not link_exists?("#{path}/#{filename}#{extension}") raise "attempting installation on #{host}, #{path}/#{filename}#{extension} does not exist" end gunzip = "" untar = "" + save_locally = "" if extension =~ /gz/ gunzip = "| gunzip" end if extension =~ /tar/ untar = "| tar -xvf -" end - on host, "cd #{host['working_dir']}; curl #{path}/#{filename}#{extension} #{gunzip} #{untar}" + if extension =~ /msi/ + save_locally = "-O" + end + on host, "cd #{host['working_dir']}; curl #{save_locally} #{path}/#{filename}#{extension} #{gunzip} #{untar}" end end end #Perform a Puppet Enterprise upgrade or install