trvsdnn / frank

Static Site Non-Framework
http://github.com/blahed/frank
MIT License
413 stars 30 forks source link

Added publishing via ftp and sftp (and ftp over tls) #70

Closed defsprite closed 12 years ago

defsprite commented 12 years ago

This adds a new parameter Frank.publish.mode to select between the publishing solutions. So far you can select between scp, sftp, ftp or ftptls. The latter is only supported for ruby < 1.9.

The default way of publishing is still scp over ssh. The origininal staticness of Frank::Publish is still somewhat achy, but hey - it works and is reasonably well tested. SFTP and FTPTLS were quickly added by cut and paste. this should probably be refactored at some point.

I have added a simple rake task, so don't need to autotest if just want to test & build the gem - which I ran into first after cloning the repo.

Hope you like it.

trvsdnn commented 12 years ago

Nice! I'll check this out tomorrow and hopefully merge and release.

defsprite commented 12 years ago

*ping*

trvsdnn commented 12 years ago

Sorry, had a ton of things going on. Nice work, thanks!