public static YamlDeploymentAction FromModel(DeploymentAction model)
 {
     return(new YamlDeploymentAction
     {
         Name = model.Name,
         ActionType = model.ActionType,
         Properties = YamlPropertyValue.FromModel(model.Properties),
         EnvironmentRefs = model.EnvironmentRefs.Select(r => r.Name).ToArray().NullIfEmpty()
     });
 }
Пример #2
0
 public static YamlDeploymentStep FromModel(DeploymentStep model)
 {
     return(new YamlDeploymentStep
     {
         Name = model.Name,
         Condition = model.Condition,
         StartTrigger = model.StartTrigger,
         RequiresPackagesToBeAcquired = model.RequiresPackagesToBeAcquired,
         Properties = YamlPropertyValue.FromModel(model.Properties),
         Actions = model.Actions.Select(YamlDeploymentAction.FromModel).ToArray()
     });
 }