Net:: SCP Net:: SSH . , , . Net:: SSH, ssh.exec! .
Net:: SCP docs:
Net:: SCP SCP (Secure CoPy), Ruby . SCP, , .
Net:: SCP uri, Kernel # :
# if you want to read from a URL voa SCP:
require 'uri/open-scp'
puts open("scp://user@remote.host/path/to/file").read
Net:: SSH docs:
require 'net/ssh'
Net::SSH.start('host', 'user', :password => "password") do |ssh|
output = ssh.exec!("hostname")
end , . output , .
Ruby , , , Ruby , , scp .
Net:: SCP Net:: SSH Net:: SFTP, , , SFTP . Net::SFTP::Operations::Dir Net::SFTP::Operations::Download .
rsync , @tadman. , .
?
rsync, . . , " ssh Ruby " " ruby ssh intro".
Melding @tadman rsync Ruby, rsync ( Ruby)".