# File lib/backup/model.rb, line 126 def sync_with(name, &block) ## # Warn user of DSL change from 'RSync' to 'RSync::Local' if name.to_s == 'Backup::Config::RSync' Logger.warn Errors::ConfigError.new("Configuration Update Needed for Syncer::RSync\nThe RSync Syncer has been split into three separate modules:\nRSync::Local, RSync::Push and RSync::Pull\nPlease update your configuration for your local RSync Syncer\nfrom 'sync_with RSync do ...' to 'sync_with RSync::Local do ...'\n") name = Backup::Config::RSync::Local end @syncers << get_class_from_scope(Syncer, name).new(&block) end