Class: Backup::Syncer::Cloud::CloudFiles

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/syncer/cloud/cloud_files.rb

Constant Summary

Constants inherited from Base

Base::MUTEX

Constants included from CLI::Helpers

CLI::Helpers::UTILITY

Instance Attribute Summary collapse

Attributes inherited from Base

#concurrency_level, #concurrency_type

Attributes inherited from Base

#mirror, #path

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods inherited from Base

#add, #directories

Methods included from Configuration::Helpers

included

Constructor Details

#initialize(&block) ⇒ CloudFiles

Instantiates a new Cloud::CloudFiles Syncer.

Pre-configured defaults specified in Configuration::Syncer::Cloud::CloudFiles are set via a super() call to Cloud::Base, which in turn will invoke Syncer::Base.

Once pre-configured defaults and Cloud specific defaults are set, the block from the user’s configuration file is evaluated.



39
40
41
42
43
44
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 39

def initialize(&block)
  super

  instance_eval(&block) if block_given?
  @path = path.sub(/^\//, '')
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers

Instance Attribute Details

#api_keyObject

Rackspace CloudFiles Credentials



10
11
12
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 10

def api_key
  @api_key
end

#auth_urlObject

Rackspace AuthURL allows you to connect to a different Rackspace datacenter



21
22
23
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 21

def auth_url
  @auth_url
end

#containerObject

Rackspace CloudFiles Container



14
15
16
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 14

def container
  @container
end

#servicenetObject

Improve performance and avoid data transfer costs by setting @servicenet to ‘true` This only works if Backup runs on a Rackspace server



27
28
29
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 27

def servicenet
  @servicenet
end

#usernameObject

Rackspace CloudFiles Credentials



10
11
12
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 10

def username
  @username
end