lib/backup/model.rb in backup-3.1.3 vs lib/backup/model.rb in backup-3.2.0

- old
+ new

@@ -110,11 +110,11 @@ end ## # Adds a syncer method to the array of syncer # methods to use during the backup process - def sync_with(name, &block) + def sync_with(name, syncer_id = nil, &block) ## # Warn user of DSL changes case name.to_s when 'Backup::Config::RSync' Logger.warn Errors::ConfigError.new(<<-EOS) @@ -132,11 +132,11 @@ This Syncer is now referenced as Cloud::#{ syncer } i.e. 'sync_with #{ syncer }' is now 'sync_with Cloud::#{ syncer }' EOS name = "Cloud::#{ syncer }" end - @syncers << get_class_from_scope(Syncer, name).new(&block) + @syncers << get_class_from_scope(Syncer, name).new(syncer_id, &block) end ## # Adds a notifier to the array of notifiers # to use during the backup process @@ -239,10 +239,10 @@ log!(:finished) rescue Exception => err log!(:failure, err) send_failure_notifications - exit(1) unless err.is_a?(StandardError) + exit(3) unless err.is_a?(StandardError) end private ##