Class: Backup::Syncer::Cloud::CloudFiles
- Defined in:
- lib/backup/syncer/cloud/cloud_files.rb
Defined Under Namespace
Classes: Error
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Rackspace CloudFiles Credentials.
-
#auth_url ⇒ Object
Rackspace AuthURL (optional).
-
#container ⇒ Object
Rackspace CloudFiles Container.
-
#fog_options ⇒ Object
Additional options to pass along to fog.
-
#region ⇒ Object
Rackspace Region (optional).
-
#servicenet ⇒ Object
Rackspace Service Net (LAN-based transfers to avoid charges and improve performance).
-
#username ⇒ Object
Rackspace CloudFiles Credentials.
Attributes inherited from Base
#max_retries, #retry_waitsec, #thread_count
Attributes inherited from Base
#excludes, #mirror, #path, #syncer_id
Instance Method Summary collapse
-
#initialize(syncer_id = nil) ⇒ CloudFiles
constructor
A new instance of CloudFiles.
Methods inherited from Base
Methods inherited from Base
Methods included from Config::Helpers
Methods included from Utilities::Helpers
Constructor Details
#initialize(syncer_id = nil) ⇒ CloudFiles
Returns a new instance of CloudFiles.
36 37 38 39 40 41 42 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 36 def initialize(syncer_id = nil) super @servicenet ||= false check_configuration end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#api_key ⇒ Object
Rackspace CloudFiles Credentials
12 13 14 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 12 def api_key @api_key end |
#auth_url ⇒ Object
Rackspace AuthURL (optional)
20 21 22 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 20 def auth_url @auth_url end |
#container ⇒ Object
Rackspace CloudFiles Container
16 17 18 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 16 def container @container end |
#fog_options ⇒ Object
Additional options to pass along to fog. e.g. Fog::Storage.new({ :provider => ‘Rackspace’ }.merge(fog_options))
34 35 36 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 34 def @fog_options end |
#region ⇒ Object
Rackspace Region (optional)
24 25 26 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 24 def region @region end |
#servicenet ⇒ Object
Rackspace Service Net (LAN-based transfers to avoid charges and improve performance)
29 30 31 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 29 def servicenet @servicenet end |
#username ⇒ Object
Rackspace CloudFiles Credentials
12 13 14 |
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 12 def username @username end |