lib/astrails/safe.rb in astrails-safe-0.3.0 vs lib/astrails/safe.rb in astrails-safe-0.3.1

- old
+ new

@@ -1,10 +1,11 @@ require "astrails/safe/version" require "aws/s3" require "cloudfiles" require 'net/sftp' +require 'net/ftp' require 'fileutils' require 'benchmark' require 'tempfile' require 'extensions/mktmpdir' @@ -21,20 +22,22 @@ require 'astrails/safe/source' require 'astrails/safe/mysqldump' require 'astrails/safe/pgdump' require 'astrails/safe/archive' require 'astrails/safe/svndump' +require 'astrails/safe/mongodump' require 'astrails/safe/pipe' require 'astrails/safe/gpg' require 'astrails/safe/gzip' require 'astrails/safe/sink' require 'astrails/safe/local' require 'astrails/safe/s3' require 'astrails/safe/cloudfiles' require 'astrails/safe/sftp' +require 'astrails/safe/ftp' module Astrails module Safe ROOT = File.join(File.dirname(__FILE__), "..", "..") @@ -43,15 +46,16 @@ #config.dump [[Mysqldump, [:mysqldump, :databases]], [Pgdump, [:pgdump, :databases]], + [Mongodump, [:mongodump, :databases]], [Archive, [:tar, :archives]], [Svndump, [:svndump, :repos]] ].each do |klass, path| if collection = config[*path] collection.each do |name, c| - klass.new(name, c).backup.run(c, :gpg, :gzip, :local, :s3, :cloudfiles, :sftp) + klass.new(name, c).backup.run(c, :gpg, :gzip, :local, :s3, :cloudfiles, :sftp, :ftp) end end end Astrails::Safe::TmpFile.cleanup