Hand the housekeeping the home it clears #55
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
Reference
rosa/casino#55
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Opening the casino takes a home now, but clearing files still doesn't.
resetand
purgeeach ask the system where the player's files are, and the binaryasks a third time on its way to opening the casino. Whose directories these
are is one decision written down in three places, and two of those places are
the ones that delete things: the only files they can be run against are a real
person's.
Hand them a home the same way. Clearing takes the home it clears, the program
constructs the single home a run uses at the point it starts, and
Home::for_useris called once.This is the other half of the seam #48 opens. That ticket makes purge answer
with a plan instead of driving prompts, so its decisions can be asserted as a
value; a plan is only worth asserting against a home the test picked. Land it
after #48, so the change goes into whatever module ends up owning the
housekeeping rather than into the config module it is on its way out of.
Acceptance criteria
one is
Home::for_useris called in exactly one place, where the program startsdirectory, with the real home unreachable from the test
order
Blocked by