Class: Backup::AbstractStorage

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/backup-agent/abstract_storage.rb

Direct Known Subclasses

S3Storage

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/backup-agent/abstract_storage.rb', line 5

def config
  @config
end

#envObject (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

#closeObject



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

#eachObject



28
29
30
# File 'lib/backup-agent/abstract_storage.rb', line 28

def each

end

#openObject



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