evaluate

fun evaluate(env: Map<String, String> = System.getenv()): RecordingGate(source)

Evaluates the gate against env, in this order: RECORD_VARIABLE absent or empty -> off; a CI variable present -> refused; 1, true or new (trimmed, ASCII case-insensitive) ->Enabled in RecordMode.New; all or overwrite ->Enabled in RecordMode.Overwrite; anything else -> off with the unrecognised-value reason.

Return

the gate; a value, never a failure.

Parameters

env

the environment; System.getenv() by default.