# File lib/sshkit/backends/local.rb, line 28 def download!(remote, local=nil, _options = {}) remote = File.join(pwd_path, remote) unless remote.to_s.start_with?("/") || pwd_path.nil? if local.nil? FileUtils.cp(remote, File.basename(remote)) else File.open(remote, "rb") do |f| IO.copy_stream(f, local) end end end