Class: DevArchive::StoreBuilder::CustomStore
- Inherits:
-
Object
- Object
- DevArchive::StoreBuilder::CustomStore
- Defined in:
- lib/dev_archive/cfg.rb
Instance Method Summary collapse
- #backup(dir) ⇒ Object
-
#initialize(backup:, restore:) ⇒ CustomStore
constructor
A new instance of CustomStore.
- #restore(metadata) ⇒ Object
Constructor Details
#initialize(backup:, restore:) ⇒ CustomStore
Returns a new instance of CustomStore.
7 8 9 10 |
# File 'lib/dev_archive/cfg.rb', line 7 def initialize(backup:, restore:) @backup = backup @restore = restore end |
Instance Method Details
#backup(dir) ⇒ Object
12 13 14 |
# File 'lib/dev_archive/cfg.rb', line 12 def backup(dir) @backup.call(dir) end |
#restore(metadata) ⇒ Object
16 17 18 |
# File 'lib/dev_archive/cfg.rb', line 16 def restore() @restore.call() end |