lib/niftp.rb
# Connects to the +host+ FTP server, executes the given block then closes
# the connection.
#
# See the README for available options and examples.
Connects to the +host+ FTP server, executes the given block then closes
the connection.

See the README for available options and examples.
Connects to the + host + FTP server executes the given block then closes the connection . See the README for available options and examples .
def login_with_timeout(ftp, host, options)
    Timeout::timeout(options[:timeout]) do
      ftp.connect host, options[:port]
      ftp.login options[:username], options[:password]
    end
  end
def login_with_timeout ( ftp , host , options ) Timeout :: timeout ( options [ :timeout ] ) do ftp . connect host , options [ :port ] ftp . login options [ :username ] , options [ :password ] end end
Connects to the +host+ FTP server, executes the given block then closes
the connection.
Connects to the + host + FTP server executes the given block then closes the connection .
ftp
<not_specific>
host
<not_specific>
options
<not_specific>