lib/astrails/safe.rb in astrails-safe-0.2.0 vs lib/astrails/safe.rb in astrails-safe-0.2.1

- old
+ new

@@ -1,7 +1,9 @@ require "aws/s3" +require 'net/sftp' require 'fileutils' +require 'benchmark' require 'tempfile' require 'extensions/mktmpdir' require 'astrails/safe/tmp_file' @@ -26,12 +28,12 @@ require 'astrails/safe/gzip' require 'astrails/safe/sink' require 'astrails/safe/local' require 'astrails/safe/s3' +require 'astrails/safe/sftp' - module Astrails module Safe ROOT = File.join(File.dirname(__FILE__), "..", "..") def safe(&block) @@ -44,10 +46,10 @@ [Astrails::Safe::Archive, [:tar, :archives]], [Astrails::Safe::Svndump, [:svndump, :repos]] ].each do |klass, path| if collection = config[*path] collection.each do |name, config| - klass.new(name, config).backup.run(config, :gpg, :gzip, :local, :s3) + klass.new(name, config).backup.run(config, :gpg, :gzip, :local, :s3, :sftp) end end end Astrails::Safe::TmpFile.cleanup