Struct trappo::recipe::RecipeBuilder[][src]

pub struct RecipeBuilder { /* fields omitted */ }

Methods

impl RecipeBuilder
[src]

Set recipe name

Set core steps

Adds default rollback steps to the recipe. These steps perform the basic rollback operation which should be enough for most deployments. It falls back to the previous release and cleans up any files which were generated by current release if any.

Adds steps to the recipe in arbitrary positions using a vector of StepConfig structs. StepConfig structs are loaded from the steps.toml configuration file.

panics if reference steps are not found in the inner vector

Add step after another

panics if step is not found in the inner vector

Add step before another

panics if step is not found in the inner vector

Consumes the recipe and returns it, leaving None as the value of the internal recipe property

panics if recipe is attempted to be build multiple times.

Auto Trait Implementations

impl !Send for RecipeBuilder

impl !Sync for RecipeBuilder