class Kitchen::Transport::Winrm::Connection
Public Instance Methods
download(remote, local)
click to toggle source
Download JSON node file from instance to node_path over Winrm
@param remote [String] file path on instance @param local [String] file path on host TODO need to fix scheme
# File lib/kitchen/provisioner/chef_zero_nodes.rb, line 104 def download(remote, local) FileUtils.mkdir_p(File.dirname(local)) file_manager ||= WinRM::FS::FileManager.new(service) file_manager.download(remote, local) logger.debug("Downloaded #{remote} to #{local}") rescue Kitchen::Transport::WinrmFailed => ex raise WinrmFailed, "Winrm download failed (#{ex.message})" end