Class: Yobi::ForgetReason

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/yobi/repository/forget.rb,
sig/yobi.rbs

Overview

Why one snapshot survived a Repository#forget run.

Instance Method Summary collapse

Instance Method Details

#matchesArray<String>

Returns Restic's own human-readable rule-match strings, e.g. "last snapshot".

Returns:

  • (Array<String>)

    Restic's own human-readable rule-match strings, e.g. "last snapshot"



160
161
162
# File 'lib/yobi/repository/forget.rb', line 160

def matches
  @matches ||= self["matches"] || []
end

#snapshotYobi::Snapshot

Returns:



155
156
157
# File 'lib/yobi/repository/forget.rb', line 155

def snapshot
  @snapshot ||= Yobi::Snapshot.new(self["snapshot"])
end