8 9 10 11 12 13 14 15 16
# File 'lib/b2b_center_api/ftp.rb', line 8 def open setup_socks Net::FTP.open(Settings.ftp_options[:host], Settings.ftp_options[:user], Settings.ftp_options[:password]) do |ftp| ftp.passive = true yield ftp end end