lib/backup/storage/cycler.rb in backup-3.6.0 vs lib/backup/storage/cycler.rb in backup-3.7.0

- old
+ new

@@ -1,10 +1,12 @@ # encoding: utf-8 module Backup module Storage module Cycler + class Error < Backup::Error; end + class << self ## # Adds the given +package+ to the YAML storage file corresponding # to the given +storage+ and Package#trigger (Model#trigger). @@ -35,12 +37,12 @@ # Calls the @storage to remove any old packages # which were cycled out of the storage file. def remove_packages! @packages_to_remove.each do |pkg| begin - @storage.send(:remove!, pkg) + @storage.send(:remove!, pkg) unless pkg.no_cycle rescue => err - Logger.warn Errors::Storage::CyclerError.wrap(err, <<-EOS) + Logger.warn Error.wrap(err, <<-EOS) There was a problem removing the following package: Trigger: #{pkg.trigger} :: Dated: #{pkg.time} Package included the following #{ pkg.filenames.count } file(s): #{ pkg.filenames.join("\n") } EOS