Class: Backup::Syncer::Cloud::CloudFiles
- Defined in:
- lib/backup/syncer/cloud/cloud_files.rb
Constant Summary
Constants inherited from Base
Constants included from CLI::Helpers
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Rackspace CloudFiles Credentials.
-
#auth_url ⇒ Object
Rackspace AuthURL allows you to connect to a different Rackspace datacenter - auth.api.rackspacecloud.com (Default: US) - lon.auth.api.rackspacecloud.com (UK).
-
#container ⇒ Object
Rackspace CloudFiles Container.
-
#servicenet ⇒ Object
Improve performance and avoid data transfer costs by setting @servicenet to ‘true` This only works if Backup runs on a Rackspace server.
-
#username ⇒ Object
Rackspace CloudFiles Credentials.
Attributes inherited from Base
#concurrency_level, #concurrency_type
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(&block) ⇒ CloudFiles
constructor
Instantiates a new Cloud::CloudFiles Syncer.
Methods inherited from Base
Methods inherited from Base
Methods included from Configuration::Helpers
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_key ⇒ Object
Rackspace CloudFiles Credentials
10 11 12 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 10 def api_key @api_key end |
#auth_url ⇒ Object
Rackspace AuthURL allows you to connect to a different Rackspace datacenter
-
auth.api.rackspacecloud.com (Default: US)
21 22 23 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 21 def auth_url @auth_url end |
#container ⇒ Object
Rackspace CloudFiles Container
14 15 16 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 14 def container @container end |
#servicenet ⇒ Object
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 |
#username ⇒ Object
Rackspace CloudFiles Credentials
10 11 12 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 10 def username @username end |