Skip to main content

ReleaseStrategy

Trait ReleaseStrategy 

Source
pub trait ReleaseStrategy: Send + Sync {
    // Required methods
    fn plan(&self) -> Result<ReleasePlan, ReleaseError>;
    fn execute(
        &self,
        plan: &ReleasePlan,
        dry_run: bool,
    ) -> Result<(), ReleaseError>;
}
Expand description

Orchestrates the release flow.

Required Methods§

Source

fn plan(&self) -> Result<ReleasePlan, ReleaseError>

Plan the release without executing it.

Source

fn execute(&self, plan: &ReleasePlan, dry_run: bool) -> Result<(), ReleaseError>

Execute the release.

Implementors§