Skip to main content

run

Function run 

Source
pub fn run(
    product: &str,
    source_root: &Path,
    home: &Path,
    state_home: &Path,
    mode: Mode,
    now: SystemTime,
    options: &InstallOptions,
) -> Result<InstallOutcome, InstallError>
Expand description

Execute one install cycle. Builds the plan from the link-map at <source_root>/targets/<product>/link-map.yaml, then either prints it (Mode::DryRun) or applies it (Mode::Apply). home and state_home must be absolute. now is injected so the backup-dir timestamp stays deterministic in tests.