lib/astrails/safe.rb in astrails-safe-0.1.0 vs lib/astrails/safe.rb in astrails-safe-0.1.1

- old
+ new

@@ -1,14 +1,26 @@ require 'extensions/mktmpdir' require 'astrails/safe/tmp_file' + require 'astrails/safe/config/node' require 'astrails/safe/config/builder' + require 'astrails/safe/stream' -require 'astrails/safe/engine' + +require 'astrails/safe/source' require 'astrails/safe/mysqldump' require 'astrails/safe/archive' +require 'astrails/safe/pipe' +require 'astrails/safe/gpg' +require 'astrails/safe/gzip' + +require 'astrails/safe/sink' +require 'astrails/safe/local' +require 'astrails/safe/s3' + + module Astrails module Safe ROOT = File.join(File.dirname(__FILE__), "..", "..") def timestamp @@ -17,11 +29,12 @@ def safe(&block) config = Config::Node.new(&block) #config.dump - Astrails::Safe::Mysqldump.run(config[:mysqldump, :databases], timestamp) - Astrails::Safe::Archive.run(config[:tar, :archives], timestamp) + Astrails::Safe::Mysqldump.run(config[:mysqldump, :databases]) + Astrails::Safe::Archive.run(config[:tar, :archives]) + Astrails::Safe::TmpFile.cleanup end end end