lib/backup/syncer/base.rb in backup-4.4.1 vs lib/backup/syncer/base.rb in backup-5.0.0.beta.1

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 - module Backup module Syncer class Base include Utilities::Helpers include Config::Helpers @@ -51,20 +49,19 @@ end private def syncer_name - @syncer_name ||= self.class.to_s.sub('Backup::', '') + - (syncer_id ? " (#{ syncer_id })" : '') + @syncer_name ||= self.class.to_s.sub("Backup::", "") + + (syncer_id ? " (#{syncer_id})" : "") end def log!(action) msg = case action - when :started then 'Started...' - when :finished then 'Finished!' + when :started then "Started..." + when :finished then "Finished!" end - Logger.info "#{ syncer_name } #{ msg }" + Logger.info "#{syncer_name} #{msg}" end - end end end