Class: OKF::Pro::Writes::Plan

Inherits:
Struct
  • Object
show all
Defined in:
lib/okf/pro/writes.rb

Overview

WHAT IT WRITES IS DECIDED BEFORE ANYTHING IS WRITTEN.

Three files change, and Scaffold.write_atomically makes each write atomic and the SET not. So the ordering is the safety: every check runs and every new text is computed — purely, in Board::Edit and Log::Edit, which cannot touch the disk — and only then does anything land. Checking as it went left a real half-closed bundle: a board that had lost its budget header refused at step two with the index already marked, so the project read as closed while its board line survived and no log entry existed, and the message said nothing had happened.

The residue of a crash mid-sequence is still real and still visible — okf pro audit reports the pairing failure — but a REFUSAL now writes nothing at all, which is what the message claims.

Instance Attribute Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



297
298
299
# File 'lib/okf/pro/writes.rb', line 297

def path
  @path
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



297
298
299
# File 'lib/okf/pro/writes.rb', line 297

def text
  @text
end