Class: SnapshotArchive::Archives::Restore

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata) ⇒ Restore

Returns a new instance of Restore.



39
40
41
# File 'lib/snapshot_archive/archives.rb', line 39

def initialize()
   = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



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

def 
  
end

Class Method Details

.call(metadata) ⇒ Object



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

def self.call()
  new().call
end

Instance Method Details

#callObject



43
44
45
46
47
48
# File 'lib/snapshot_archive/archives.rb', line 43

def call
  .fetch("stores").reverse.each do ||
    store = Cfg.instance.store(.fetch("type"))
    store.restore(metadata: )
  end
end