lib/beaker/dsl/install_utils/module_utils.rb in beaker-2.14.1 vs lib/beaker/dsl/install_utils/module_utils.rb in beaker-2.15.0

- old
+ new

@@ -129,16 +129,10 @@ #move to the host logger.debug "Using scp to transfer #{source_path} to #{target_path}" scp_to host, source_path, target_module_dir, {:ignore => ignore_list} #rename to the selected module name, if not correct cur_path = File.join(target_module_dir, source_name) - if (cur_path != target_path) - if host.is_powershell? - on host, "move /y #{cur_path} #{target_path}" - else - on host, "mv #{cur_path} #{target_path}" - end - end + host.mv cur_path, target_path unless cur_path == target_path when 'rsync' logger.debug "Using rsync to transfer #{source_path} to #{target_path}" rsync_to host, source_path, target_path, {:ignore => ignore_list} else logger.debug "Unsupported transfer protocol, returning nil"