Class: Yobi::DiffOutcome
- Inherits:
-
Struct
- Object
- Struct
- Yobi::DiffOutcome
- Defined in:
- lib/yobi/repository/diff.rb,
sig/yobi.rbs
Overview
The outcome of one Repository#diff call.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #changes ⇒ Enumerable<Yobi::DiffChange>
-
#report ⇒ Hash
Restic's own
"statistics"fields ("changed_files","added","removed", ...).
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code
24 25 26 |
# File 'lib/yobi/repository/diff.rb', line 24 def exit_code @exit_code end |
#output ⇒ Object
Returns the value of attribute output
24 25 26 |
# File 'lib/yobi/repository/diff.rb', line 24 def output @output end |
Instance Method Details
#changes ⇒ Enumerable<Yobi::DiffChange>
31 32 33 |
# File 'lib/yobi/repository/diff.rb', line 31 def changes @changes ||= DiffChanges.new(output) end |
#report ⇒ Hash
Returns Restic's own "statistics" fields ("changed_files", "added", "removed", ...).
26 27 28 |
# File 'lib/yobi/repository/diff.rb', line 26 def report @report ||= summary_hash end |