Class: Backup::Storage::PCS
- Inherits:
-
Base
- Object
- Base
- Backup::Storage::PCS
- Defined in:
- lib/backup/storage/pcs.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#dir_name ⇒ Object
Returns the value of attribute dir_name.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#retry_waitsec ⇒ Object
Returns the value of attribute retry_waitsec.
Instance Method Summary collapse
-
#initialize(model, storage_id = nil) ⇒ PCS
constructor
A new instance of PCS.
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_id ⇒ Object
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_secret ⇒ Object
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_name ⇒ Object
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_retries ⇒ Object
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_waitsec ⇒ Object
Returns the value of attribute retry_waitsec.
11 12 13 |
# File 'lib/backup/storage/pcs.rb', line 11 def retry_waitsec @retry_waitsec end |