Skip to main content

commit_generation

Function commit_generation 

Source
pub async fn commit_generation(
    ctx: &Ctx,
    gen: GenerationRow,
    expected_current: Option<u32>,
) -> Result<bool>
Expand description

Moves the built folder gen.dir to templates/<name>@<gen>, records the generation and, when the current pointer still equals expected_current, makes it current; then prunes. True when it became current; otherwise it is kept as a non-current generation.