Class: SnapshotArchive::Archives::Restore
- Inherits:
-
Object
- Object
- SnapshotArchive::Archives::Restore
- Defined in:
- lib/snapshot_archive/archives.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(metadata) ⇒ Restore
constructor
A new instance of Restore.
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
#metadata ⇒ Object (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
#call ⇒ Object
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 |