Sha256: 5a3ee4bf1df21790ba571c88d7ef3ed4057be330d5d74eff7ff72369d1d15588

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

require 'fog'
require 'lazily'
require 'virtus'
require 'pathname'
require 'celluloid'
require 'multi_sync/attributes/pathname'

module MultiSync
  class Target
    include Celluloid
    include Virtus.model

    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
end

Version data entries

1 entries across 1 versions & 1 rubygems

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