FTP Service

An FTP Service is like a web service except stupid. You send your request by uploading an xml file and get your response by downloading another xml file. Have you ever had to deal with something like that? I have. It sucks. I wrote this to make it suck less. I hope no one else has to use it.

RDocs on rdoc.info.

Source code on github.


gem install ftp_service


require 'ftp_service'

FtpService.open('host', 'user', 'pass') do |service|
  service.write_request('<foo>bar</foo>', "/request/path.xml")
  response = service.read_response("/response/path.xml")

Encryption with GPG is also upported. For more details, see the RDocs.

Copyright (c) 2010 Justin Blake. See LICENSE for details.