Class: B2bCenterApi::Ftp
- Inherits:
-
Object
- Object
- B2bCenterApi::Ftp
- Defined in:
- lib/b2b_center_api/ftp.rb
Class Method Summary collapse
Class Method Details
.open ⇒ Object
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.[:host], Settings.[:user], Settings.[:password]) do |ftp| ftp.passive = true yield ftp end end |