Skip to main content

load_enforcement_policy

Function load_enforcement_policy 

Source
pub fn load_enforcement_policy(
    start_dir: &str,
) -> Result<EnforcementPolicy, MalformedConfig>
Expand description

load_enforcement_policy(start_dir) — the STRICT reader build_gate consumes. YAML 1.1 resolves a bare off key to Bool(false); both key spellings are accepted, off winning (section["off"] if "off" in section else section.get(False)).