Sha256: e76319aad0649ee6c730b9a073d1bc3689b5025343a5c2895af78ef10705e822
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
require 'aws/s3' require 'cloudfiles' require 'net/sftp' require 'net/scp' require 'tmpdir' require 'fileutils' require 'benchmark' require 'tempfile' require 'web_translate_it/safe/tmp_file' require 'web_translate_it/safe/config/node' require 'web_translate_it/safe/config/builder' require 'web_translate_it/safe/stream' require 'web_translate_it/safe/backup' require 'web_translate_it/safe/source' require 'web_translate_it/safe/mysqldump' require 'web_translate_it/safe/pgdump' require 'web_translate_it/safe/archive' require 'web_translate_it/safe/mongodump' require 'web_translate_it/safe/pipe' require 'web_translate_it/safe/gpg' require 'web_translate_it/safe/gzip' require 'web_translate_it/safe/sink' require 'web_translate_it/safe/local' require 'web_translate_it/safe/s3' require 'web_translate_it/safe/cloudfiles' require 'web_translate_it/safe/sftp' module WebTranslateIt module Safe ROOT = File.join(File.dirname(__FILE__), '..', '..') def safe(&) Config::Node.new(&) end def process(config) [[Mysqldump, %i[mysqldump databases]], [Pgdump, %i[pgdump databases]], [Mongodump, %i[mongodump databases]], [Archive, %i[tar archives]]].each do |klass, path| next unless collection = config[*path] collection.each do |name, c| klass.new(name, c).backup.run(c, :gpg, :gzip, :local, :s3, :cloudfiles, :sftp) end end WebTranslateIt::Safe::TmpFile.cleanup end module_function :safe module_function :process end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webtranslateit-safe-0.4.8 | lib/web_translate_it/safe.rb |