lib/backup/packager.rb in backup-3.6.0 vs lib/backup/packager.rb in backup-3.7.0
- old
+ new
@@ -1,9 +1,11 @@
# encoding: utf-8
module Backup
module Packager
+ class Error < Backup::Error; end
+
class << self
include Backup::Utilities::Helpers
##
# Build the final package for the backup model.
@@ -17,11 +19,10 @@
procedure.call
if @pipeline.success?
Logger.info "Packaging Complete!"
else
- raise Errors::Packager::PipelineError,
- "Failed to Create Backup Package\n" +
+ raise Error, "Failed to Create Backup Package\n" +
@pipeline.error_messages
end
end
private