Class: SnapshotArchive::Archives::Delete
- Inherits:
-
Object
- Object
- SnapshotArchive::Archives::Delete
- 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) ⇒ Delete
constructor
A new instance of Delete.
Constructor Details
#initialize(metadata) ⇒ Delete
57 58 59 |
# File 'lib/snapshot_archive/archives.rb', line 57 def initialize() = end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
56 57 58 |
# File 'lib/snapshot_archive/archives.rb', line 56 def end |
Class Method Details
.call(metadata) ⇒ Object
52 53 54 |
# File 'lib/snapshot_archive/archives.rb', line 52 def self.call() new().call end |
Instance Method Details
#call ⇒ Object
61 62 63 64 65 66 67 68 |
# File 'lib/snapshot_archive/archives.rb', line 61 def call .fetch("stores").each do || store = Cfg.instance.store(.fetch("type")) if store.respond_to?(:delete) store.delete(metadata: ) end end end |