github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/actor/v7pushaction/update_web_process_for_application.go (about) 1 package v7pushaction 2 3 import ( 4 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant" 5 log "github.com/sirupsen/logrus" 6 ) 7 8 func (actor Actor) UpdateWebProcessForApplication(pushPlan PushPlan, eventStream chan<- Event, progressBar ProgressBar) (PushPlan, Warnings, error) { 9 if pushPlan.UpdateWebProcessNeedsUpdate { 10 log.Info("Setting Web Process's Configuration") 11 eventStream <- SetProcessConfiguration 12 13 log.WithField("Process", pushPlan.UpdateWebProcess).Debug("Update process") 14 warnings, err := actor.V7Actor.UpdateProcessByTypeAndApplication(constant.ProcessTypeWeb, pushPlan.Application.GUID, pushPlan.UpdateWebProcess) 15 if err != nil { 16 return pushPlan, Warnings(warnings), err 17 } 18 eventStream <- SetProcessConfigurationComplete 19 return pushPlan, Warnings(warnings), nil 20 } 21 22 return pushPlan, nil, nil 23 }