Class: Backup::Storage::PCS

Inherits:
Base
  • Object
show all
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.



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

def initialize(model, storage_id=nil)
  super

  @path          ||= 'backups'
  @max_retries   ||= 10
  @retry_waitsec ||= 30
end

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id.



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

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



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

def client_secret
  @client_secret
end

#dir_nameObject

Returns the value of attribute dir_name.



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

def dir_name
  @dir_name
end

#max_retriesObject

Returns the value of attribute max_retries.



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

def max_retries
  @max_retries
end

#retry_waitsecObject

Returns the value of attribute retry_waitsec.



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

def retry_waitsec
  @retry_waitsec
end