Sha256: b6bfdb342c5b2b3c0843fd8d9581c14528783d061b8c2e9b03ed3a1a84dfa5d3
Contents?: true
Size: 587 Bytes
Versions: 3
Compression:
Stored size: 587 Bytes
Contents
require 'vagrant' require 'vagrant/errors' require 'vagrant/communication/ssh' # Helloooooo monkey patching. class Vagrant::Communication::SSH # Download a remote file # # @param [String] from the path on the remote end # @param [String] to the path on the local end # # def download(from, to) @logger.debug("Downlaoding: #{from} to #{to}") connect do |connection| scp = Net::SCP.new(connection) scp.download!(from, to) end rescue Net::SCP::Error => e raise Vagrant::Errors::SCPUnavailable if e.message =~ /\(127\)/ raise end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-hosts-0.0.2 | lib/vagrant-hosts/ssh.rb |
vagrant-hosts-0.0.1 | lib/vagrant-hosts/ssh.rb |
vagrant-hosts-0.0.1rc1 | lib/vagrant-hosts/ssh.rb |