Class: Backup::Storage::PCS

Inherits:
Base
  • Object
show all
Includes:
Storage::Cycler
Defined in:
lib/backup/storage/pcs.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, storage_id = nil) ⇒ PCS

Returns a new instance of PCS.



14
15
16
17
18
19
20
21
# File 'lib/backup/storage/pcs.rb', line 14

def initialize(model, storage_id=nil)
  super

  @path          ||= 'backups'
  @cache_path    ||= '.cache'
  @max_retries   ||= 10
  @retry_waitsec ||= 30
end

Instance Attribute Details

#cache_pathObject

Returns the value of attribute cache_path.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def cache_path
  @cache_path
end

#client_idObject

Returns the value of attribute client_id.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def client_secret
  @client_secret
end

#dir_nameObject

Returns the value of attribute dir_name.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def dir_name
  @dir_name
end

#max_retriesObject

Returns the value of attribute max_retries.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def max_retries
  @max_retries
end

#retry_waitsecObject

Returns the value of attribute retry_waitsec.



12
13
14
# File 'lib/backup/storage/pcs.rb', line 12

def retry_waitsec
  @retry_waitsec
end