Sha256: 270cd3844ce2a75779e1b17a3cb84a3af83f3f602215f3df60e15b177f3c1aab

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

require 'fog'
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

    def default_credentials
      Marshal.load(Marshal.dump(MultiSync.credentials))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multi_sync-0.0.2 lib/multi_sync/target.rb