Module: Dorothy::Ssh
Instance Method Summary collapse
Instance Method Details
#download(host, user, pass, file, dest, port = 22) ⇒ Object
44 45 46 47 48 |
# File 'lib/dorothy2/do-utils.rb', line 44 def download(host, user, pass, file, dest, port=22) Net::SSH.start(host, user, :password => pass, :port =>port) do |ssh| ssh.scp.download! file, dest end end |