Struct trappo::recipe::RecipeBuilder [−][src]
pub struct RecipeBuilder { /* fields omitted */ }
Methods
impl RecipeBuilder
[src]
impl RecipeBuilder
pub fn name(&mut self, name: &str) -> &mut Self
[src]
pub fn name(&mut self, name: &str) -> &mut Self
Set recipe name
pub fn with_core_steps(&mut self) -> &mut Self
[src]
pub fn with_core_steps(&mut self) -> &mut Self
Set core steps
pub fn with_core_rollback_steps(&mut self) -> &mut Self
[src]
pub fn with_core_rollback_steps(&mut self) -> &mut Self
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.
pub fn with_config_steps(&mut self, config_steps: Vec<StepConfig>) -> &mut Self
[src]
pub fn with_config_steps(&mut self, config_steps: Vec<StepConfig>) -> &mut Self
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
pub fn with_step_after<T: 'static + Step>(
&mut self,
subject_name: &str,
extra_step: T
) -> &mut Self
[src]
pub fn with_step_after<T: 'static + Step>(
&mut self,
subject_name: &str,
extra_step: T
) -> &mut Self
Add step after another
panics if step is not found in the inner vector
pub fn with_step_before<T: 'static + Step>(
&mut self,
subject_name: &str,
extra_step: T
) -> &mut Self
[src]
pub fn with_step_before<T: 'static + Step>(
&mut self,
subject_name: &str,
extra_step: T
) -> &mut Self
Add step before another
panics if step is not found in the inner vector
pub fn finish(&mut self) -> Recipe
[src]
pub fn finish(&mut self) -> Recipe
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 !Send for RecipeBuilder
impl !Sync for RecipeBuilder
impl !Sync for RecipeBuilder