lib/multi_sync/target.rb in multi_sync-0.0.2 vs lib/multi_sync/target.rb in multi_sync-0.0.3

- old
+ new

@@ -2,20 +2,20 @@ require 'lazily' require 'virtus' require 'pathname' require 'celluloid' require 'multi_sync/attributes/pathname' -require 'multi_sync/mixins/log_helper' module MultiSync class Target include Celluloid include Virtus.model - include MultiSync::Mixins::LogHelper - + attribute :target_dir, MultiSync::Attributes::Pathname, default: Pathname.new('') attribute :destination_dir, MultiSync::Attributes::Pathname, default: Pathname.new('') attribute :credentials, Hash, default: :default_credentials + + private def default_credentials Marshal.load(Marshal.dump(MultiSync.credentials)) end end