Class: DevArchive::Archives::Restore

Inherits:
Object
  • Object
show all
Defined in:
lib/dev_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.



33
34
35
# File 'lib/dev_archive/archives.rb', line 33

def initialize()
  @metadata = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



32
33
34
# File 'lib/dev_archive/archives.rb', line 32

def 
  @metadata
end

Class Method Details

.call(metadata) ⇒ Object



28
29
30
# File 'lib/dev_archive/archives.rb', line 28

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

Instance Method Details

#callObject



37
38
39
40
41
42
# File 'lib/dev_archive/archives.rb', line 37

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