Downloading Files
require 'net/ftp' ftp = Net::FTP.new('ftp.ruby-lang.org') ftp.passive = true ftp.login ftp.chdir('/pub/ruby/1.8') ftp.getbinaryfile('1.8.2-patch1.gz') ftp.close