Class: SnapshotArchive::StoreBuilder

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

Defined Under Namespace

Classes: CustomStore

Instance Method Summary collapse

Instance Method Details

#backup(&block) ⇒ Object



26
27
28
# File 'lib/snapshot_archive/cfg.rb', line 26

def backup(&block)
  @backup = block
end

#delete(&block) ⇒ Object



34
35
36
# File 'lib/snapshot_archive/cfg.rb', line 34

def delete(&block)
  @delete = block
end

#restore(&block) ⇒ Object



30
31
32
# File 'lib/snapshot_archive/cfg.rb', line 30

def restore(&block)
  @restore = block
end

#to_storeObject



38
39
40
# File 'lib/snapshot_archive/cfg.rb', line 38

def to_store
  CustomStore.new(backup: @backup, restore: @restore, delete: @delete)
end