Class: Backup::AbstractStorage
- Inherits:
-
Object
- Object
- Backup::AbstractStorage
- Includes:
- Enumerable
- Defined in:
- lib/backup-agent/abstract_storage.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
- #close ⇒ Object
- #delete(key) ⇒ Object
- #each ⇒ Object
-
#initialize(config, env = {}) ⇒ AbstractStorage
constructor
A new instance of AbstractStorage.
- #open ⇒ Object
- #upload(key, path) ⇒ Object
Constructor Details
#initialize(config, env = {}) ⇒ AbstractStorage
Returns a new instance of AbstractStorage.
7 8 9 10 |
# File 'lib/backup-agent/abstract_storage.rb', line 7 def initialize(config, env = {}) @config = config @env = env end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/backup-agent/abstract_storage.rb', line 5 def config @config end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/backup-agent/abstract_storage.rb', line 5 def env @env end |
Instance Method Details
#close ⇒ Object
16 17 18 |
# File 'lib/backup-agent/abstract_storage.rb', line 16 def close end |
#delete(key) ⇒ Object
24 25 26 |
# File 'lib/backup-agent/abstract_storage.rb', line 24 def delete(key) end |
#each ⇒ Object
28 29 30 |
# File 'lib/backup-agent/abstract_storage.rb', line 28 def each end |
#open ⇒ Object
12 13 14 |
# File 'lib/backup-agent/abstract_storage.rb', line 12 def open end |
#upload(key, path) ⇒ Object
20 21 22 |
# File 'lib/backup-agent/abstract_storage.rb', line 20 def upload(key, path) end |