Class: Backup::Storage::CloudFiles

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/storage/cloudfiles.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#keep, #storage_id

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Configuration::Helpers

#clear_defaults!, #load_defaults!

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

Instance Attribute Details

#api_keyObject

Rackspace Cloud Files Credentials



13
14
15
# File 'lib/backup/storage/cloudfiles.rb', line 13

def api_key
  @api_key
end

#auth_urlObject

Rackspace Cloud Files Credentials



13
14
15
# File 'lib/backup/storage/cloudfiles.rb', line 13

def auth_url
  @auth_url
end

#containerObject

Rackspace Cloud Files container name and path



22
23
24
# File 'lib/backup/storage/cloudfiles.rb', line 22

def container
  @container
end

#pathObject

Rackspace Cloud Files container name and path



22
23
24
# File 'lib/backup/storage/cloudfiles.rb', line 22

def path
  @path
end

#servicenetObject

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

#usernameObject

Rackspace Cloud Files Credentials



13
14
15
# File 'lib/backup/storage/cloudfiles.rb', line 13

def username
  @username
end