require 'net/ftp'ftp = Net::FTP.new("ftp.ruby-lang.org")ftp.loginftp.passive = truefiles = ftp.chdir("/pub/ruby")snapshot = "stable-snapshot.tar.gz"ftp.getbinaryfile(snapshot, snapshot)ftp.close