Skip to content

Instantly share code, notes, and snippets.

@KevinT
KevinT / deployer.rake
Created March 15, 2012 14:57 — forked from morgoth/deployer.rake
Rake task to copy local files to remote server via FTP
# Rake task to copy local files to remote server via FTP
# required credentials.yml file, that contains keys:
# server, username, password
require "net/ftp"
require "yaml"
class FTPClient
attr_reader :remote_path