Fluxion::Condition
A when guard on a plan entry or on an item inside commands,
shell-scripts, or file-writes.
Every declared field must match — fields are ANDed — while the values
inside one field are ORed. oneOf nests whole conditions and is ORed
against its siblings' AND.
Constructors
Instance methods
Evaluates against detected host facts. The PATH lookup is injected so
plan can evaluate conditions without an executor and so specs can drive
it deterministically.
Explains the first unmet requirement, for the skip reason printed in
plan, dry-run, and the TUI. Nil when the condition matches.
Evaluation and explanation share one implementation so a condition can never report "matched" while also producing a reason, or vice versa.
Takes a Proc rather than a block because oneOf recurses, and Crystal
always inlines yielding calls.