Class: Yobi::DiffOutcome

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

Overview

The outcome of one Repository#diff call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



24
25
26
# File 'lib/yobi/repository/diff.rb', line 24

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



24
25
26
# File 'lib/yobi/repository/diff.rb', line 24

def output
  @output
end

Instance Method Details

#changesEnumerable<Yobi::DiffChange>

Returns:



31
32
33
# File 'lib/yobi/repository/diff.rb', line 31

def changes
  @changes ||= DiffChanges.new(output)
end

#reportHash

Returns Restic's own "statistics" fields ("changed_files", "added", "removed", ...).

Returns:

  • (Hash)

    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