Class: SnapshotArchive::Archives::Delete

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) ⇒ Delete

Returns a new instance of Delete.



57
58
59
# File 'lib/snapshot_archive/archives.rb', line 57

def initialize()
  @metadata = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



56
57
58
# File 'lib/snapshot_archive/archives.rb', line 56

def 
  @metadata
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

#callObject



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