Module: CloudSync

Defined in:
lib/cloud_sync.rb,
lib/cloud_sync/log.rb,
lib/cloud_sync/archiver.rb,
lib/cloud_sync/media/s3.rb,
lib/cloud_sync/resource.rb,
lib/cloud_sync/media/base.rb,
lib/cloud_sync/synchronizer.rb,
lib/cloud_sync/configuration.rb,
lib/cloud_sync/media/rackspace.rb,
lib/cloud_sync/media/filesystem.rb

Defined Under Namespace

Modules: Media Classes: Archiver, Configuration, Log, Resource, Synchronizer

Constant Summary collapse

VERSION =
0.1
MediaTypes =
{
  :filesystem => CloudSync::Media::Filesystem,
  :rackspace  => CloudSync::Media::Rackspace,
  :s3         => CloudSync::Media::S3 
}

Class Method Summary collapse

Class Method Details

.archive(source, destination) ⇒ Object



16
17
18
# File 'lib/cloud_sync.rb', line 16

def self.archive source, destination
  Archiver.new(source, destination).archive
end

.copy(source, destination) ⇒ Object



12
13
14
# File 'lib/cloud_sync.rb', line 12

def self.copy source, destination
  Resource.new(source).copy(Resource.new(destination))
end

.synchronize(source, destination) ⇒ Object



20
21
22
# File 'lib/cloud_sync.rb', line 20

def self.synchronize source, destination
  Synchronizer.new(source).synchronize(destination)
end