public void ApplyTemplate(YamlTemplates templates) { this.ApplyTemplate(templates?.Projects); foreach (var step in (DeploymentProcess?.Steps).EnsureNotNull()) { step.ApplyTemplate(templates); } }
public void ApplyTemplate(YamlTemplates templates) { this.ApplyTemplate(templates?.DeploymentSteps); foreach (var action in Actions.EnsureNotNull()) { action.ApplyTemplate(templates); } }
public YamlOctopusModel MergeIn(YamlOctopusModel model) { Environments = this.MergeItemsIn(model, x => x.Environments); ProjectGroups = this.MergeItemsIn(model, x => x.ProjectGroups); LibraryVariableSets = this.MergeItemsIn(model, x => x.LibraryVariableSets); Lifecycles = this.MergeItemsIn(model, x => x.Lifecycles); Projects = this.MergeItemsIn(model, x => x.Projects); UserRoles = this.MergeItemsIn(model, x => x.UserRoles); Teams = this.MergeItemsIn(model, x => x.Teams); Templates = YamlTemplates.MergeIn(Templates, model.Templates); return(this); }
public void ApplyTemplate(YamlTemplates templates) { this.ApplyTemplate(templates?.DeploymentActions); }
public void ApplyTemplate(YamlTemplates templates) { throw new NotImplementedException(); }