// ExecuteDeployPlan executes a map of plan items in a deployment plan
ExecuteDeployPlan executes a map of plan items in a deployment plan
// ExecuteDeployPlan executes a map of plan items in a deployment plan
func (api *RestApi) ExecuteDeployPlan(plans map[string]types.Plan, targetDir string, verbose bool) ([]*io.ReadCloser, error) {
	if verbose {
		fmt.Println(text.VerboseSection("Executing Deploy Plan"))
	}
	planResults := []*io.ReadCloser{}
	for _, plan := range plans {
		planResult, err := api.ExecutePlanItem(plan, targetDir, verbose)
		if err != nil {
			return nil, err
		}
		planResults = append(planResults, planResult)
	}
	return planResults, nil
}
func ( api * RestApi ) ExecuteDeployPlan ( plans map [ string ] types . Plan , targetDir string , verbose bool ) ( [ ] * io . ReadCloser , error ) { if verbose { fmt . Println ( text . VerboseSection ( " " ) ) } planResults := [ ] * io . ReadCloser { } for _ , plan := range plans { planResult , err := api . ExecutePlanItem ( plan , targetDir , verbose ) if err != nil { return nil , err } planResults = append ( planResults , planResult ) } return planResults , nil }
ExecuteDeployPlan executes a map of plan items in a deployment plan
ExecuteDeployPlan executes a map of plan items in a deployment plan