0.0
No commit activity in last 3 years
No release in over 3 years
Uses the ftpd gem to publish a SimplePubSub notice whenever a file is uploaded.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.21, ~> 0.2
>= 1.1.1, ~> 1.1
>= 0.4.0, ~> 0.4
>= 0.1.0, ~> 0.1
 Project Readme

Introducing the Sps-ftpd-driver Gem

require 'sps-ftpd-driver'

driver = SpsFtpdDriver.new(temp_dir='/tmp/')
server = Ftpd::FtpServer.new(driver)
server.start
puts "Server listening on port #{server.bound_port}"
gets

The above script will start an FTP server on an arbitrary port using the /tmp/ directory to store uploaded files. When a file is uploaded, a message is published to the SimplePubSub broker on host 'sps'.

After uploading a file to the FTP server I observed the following SPS message:

test: uploaded file vcard.xml

SPS Options

  • topic - the default topic is 'test'
  • host - the default host is 'sps'
  • port - the default port is 59000.

Resources

spsftpddriver gem ftpd ftp sps