Class: Space::Src::Sync::Report
- Inherits:
-
Data
- Object
- Data
- Space::Src::Sync::Report
- 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
-
#processed ⇒ Object
readonly
Returns the value of attribute processed.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Attribute Details
#processed ⇒ Object (readonly)
Returns the value of attribute processed
16 17 18 |
# File 'lib/space_src/sync/report.rb', line 16 def processed @processed end |
#state ⇒ Object (readonly)
Returns the value of attribute state
16 17 18 |
# File 'lib/space_src/sync/report.rb', line 16 def state @state end |