Create an uploader and pass it to the
given block as up. When the block is complete, close the uploader.
# File lib/rake/contrib/ftptools.rb, line 81
def connect(path, host, account, password)
up = self.new(path, host, account, password)
begin
yield(up)
ensure
up.close
end
end