Module: Backup::Packager
- Extended by:
- Utilities::Helpers
- Defined in:
- lib/backup/packager.rb
Defined Under Namespace
Classes: Error
Class Method Summary collapse
-
.package!(model) ⇒ Object
Build the final package for the backup model.
Class Method Details
.package!(model) ⇒ Object
Build the final package for the backup model.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/backup/packager.rb', line 12 def package!(model) @package = model.package @encryptor = model.encryptor @splitter = model.splitter @pipeline = Pipeline.new Logger.info "Packaging the backup files..." procedure.call if @pipeline.success? Logger.info "Packaging Complete!" else raise Error, "Failed to Create Backup Package\n" + @pipeline. end end |