Class: B2bCenterApi::Ftp

Inherits:
Object
  • Object
show all
Defined in:
lib/b2b_center_api/ftp.rb

Class Method Summary collapse

Class Method Details

.openObject



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