Class: Yobi::RestoreOutcome

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

Overview

The outcome of one Yobi::Repository#restore 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



82
83
84
# File 'lib/yobi/repository/restore.rb', line 82

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



82
83
84
# File 'lib/yobi/repository/restore.rb', line 82

def output
  @output
end

Instance Method Details

#reportHash

Returns Restic's own "summary" fields ("total_files", "files_restored", ...).

Returns:

  • (Hash)

    Restic's own "summary" fields ("total_files", "files_restored", ...)



84
85
86
# File 'lib/yobi/repository/restore.rb', line 84

def report
  @report ||= summary_hash
end