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

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

Defined Under Namespace

Classes: Error

Constant Summary

Constants inherited from Base

Base::MUTEX

Instance Attribute Summary collapse

Attributes inherited from Base

#max_retries, #retry_waitsec, #thread_count

Attributes inherited from Base

#excludes, #mirror, #path, #syncer_id

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods inherited from Base

#add, #directories, #exclude

Methods included from Config::Helpers

included

Methods included from Utilities::Helpers

#utility_remote

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_keyObject

Rackspace CloudFiles Credentials



12
13
14
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 12

def api_key
  @api_key
end

#auth_urlObject

Rackspace AuthURL (optional)



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

def auth_url
  @auth_url
end

#containerObject

Rackspace CloudFiles Container



16
17
18
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 16

def container
  @container
end

#fog_optionsObject

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
  @fog_options
end

#regionObject

Rackspace Region (optional)



24
25
26
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 24

def region
  @region
end

#servicenetObject

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

#usernameObject

Rackspace CloudFiles Credentials



12
13
14
# File 'lib/backup/syncer/cloud/cloud_files.rb', line 12

def username
  @username
end