Class: Space::Src::Sync::Report

Inherits:
Data
  • Object
show all
Defined in:
lib/space_src/sync/report.rb

Overview

What one sync pass did.

state is the merged whole-state that gets written to disk: it carries a row for every repo ever synced, because build_new_state starts from the previous state and merges this run's outcomes into it. processed counts only the repos this run actually touched.

The two diverge whenever the run is scoped (sync --repo) or the state file already holds rows from earlier runs — which is why callers wanting "how many repos did this run handle?" must read processed and never state.repos.size.

Instance Attribute Summary collapse

Instance Attribute Details

#processedObject (readonly)

Returns the value of attribute processed

Returns:

  • (Object)

    the current value of processed



16
17
18
# File 'lib/space_src/sync/report.rb', line 16

def processed
  @processed
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



16
17
18
# File 'lib/space_src/sync/report.rb', line 16

def state
  @state
end