(appGUID string, process resources.Process)
| 24 | } |
| 25 | |
| 26 | func (actor Actor) ScaleProcessByApplication(appGUID string, process resources.Process) (Warnings, error) { |
| 27 | _, warnings, err := actor.CloudControllerClient.CreateApplicationProcessScale(appGUID, resources.Process(process)) |
| 28 | allWarnings := Warnings(warnings) |
| 29 | if err != nil { |
| 30 | if _, ok := err.(ccerror.ProcessNotFoundError); ok { |
| 31 | return allWarnings, actionerror.ProcessNotFoundError{ProcessType: process.Type} |
| 32 | } |
| 33 | return allWarnings, err |
| 34 | } |
| 35 | |
| 36 | return allWarnings, nil |
| 37 | } |
| 38 | |
| 39 | func (actor Actor) UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (Warnings, error) { |
| 40 | if updatedProcess.HealthCheckType != constant.HTTP { |
nothing calls this directly
no test coverage detected