Class: Backup::Storage::CloudFiles
- Defined in:
- lib/backup/storage/cloudfiles.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Rackspace Cloud Files Credentials.
-
#auth_url ⇒ Object
Rackspace Cloud Files Credentials.
-
#container ⇒ Object
Rackspace Cloud Files container name and path.
-
#path ⇒ Object
Rackspace Cloud Files container name and path.
-
#servicenet ⇒ Object
Rackspace Service Net (LAN-based transfers to avoid charges and improve performance).
-
#username ⇒ Object
Rackspace Cloud Files Credentials.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(model, storage_id = nil, &block) ⇒ CloudFiles
constructor
Creates a new instance of the storage object.
Methods inherited from Base
Methods included from Configuration::Helpers
Constructor Details
#initialize(model, storage_id = nil, &block) ⇒ CloudFiles
Creates a new instance of the storage object
26 27 28 29 30 31 32 33 |
# File 'lib/backup/storage/cloudfiles.rb', line 26 def initialize(model, storage_id = nil, &block) super(model, storage_id) @servicenet ||= false @path ||= 'backups' instance_eval(&block) if block_given? 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 Cloud Files Credentials
13 14 15 |
# File 'lib/backup/storage/cloudfiles.rb', line 13 def api_key @api_key end |
#auth_url ⇒ Object
Rackspace Cloud Files Credentials
13 14 15 |
# File 'lib/backup/storage/cloudfiles.rb', line 13 def auth_url @auth_url end |
#container ⇒ Object
Rackspace Cloud Files container name and path
22 23 24 |
# File 'lib/backup/storage/cloudfiles.rb', line 22 def container @container end |
#path ⇒ Object
Rackspace Cloud Files container name and path
22 23 24 |
# File 'lib/backup/storage/cloudfiles.rb', line 22 def path @path end |
#servicenet ⇒ Object
Rackspace Service Net (LAN-based transfers to avoid charges and improve performance)
18 19 20 |
# File 'lib/backup/storage/cloudfiles.rb', line 18 def servicenet @servicenet end |
#username ⇒ Object
Rackspace Cloud Files Credentials
13 14 15 |
# File 'lib/backup/storage/cloudfiles.rb', line 13 def username @username end |