Class: Backup::Storage::PCS
- Inherits:
-
Base
- Object
- Base
- Backup::Storage::PCS
- Includes:
- Storage::Cycler
- Defined in:
- lib/backup/storage/pcs.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#cache_path ⇒ Object
Returns the value of attribute cache_path.
-
#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.
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_path ⇒ Object
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_id ⇒ Object
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_secret ⇒ Object
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_name ⇒ Object
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_retries ⇒ Object
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_waitsec ⇒ Object
Returns the value of attribute retry_waitsec.
12 13 14 |
# File 'lib/backup/storage/pcs.rb', line 12 def retry_waitsec @retry_waitsec end |