Class: DevArchive::StoreBuilder::CustomStore

Inherits:
Object
  • Object
show all
Defined in:
lib/dev_archive/cfg.rb

Instance Method Summary collapse

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