class Kitchen::Transport::Ssh::Connection
Public Instance Methods
download(remote, local)
click to toggle source
Download JSON node file from instance to node_path over SCP
@param remote [String] file path on instance @param local [String] file path on host
# File lib/kitchen/provisioner/chef_zero_nodes.rb, line 82 def download(remote, local) FileUtils.mkdir_p(File.dirname(local)) session.scp.download!(remote, local, {}) logger.debug("Downloaded #{remote} to #{local}") rescue Net::SSH::Exception => ex raise SshFailed, "SCP download failed (#{ex.message})" end