chore: rename function

This commit is contained in:
Jose Diaz-Gonzalez
2022-12-29 01:13:00 -05:00
parent c1da419d01
commit a53ead6c64
2 changed files with 3 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ func scaleSet(appName string, skipDeploy bool, clearExisting bool, processTuples
return nil return nil
} }
func getProcessSpecificProcfile(appName string) string { func getProcessSpecificProcfilePath(appName string) string {
existingProcfile := getProcfilePath(appName) existingProcfile := getProcfilePath(appName)
processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID")) processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID"))
if common.FileExists(processSpecificProcfile) { if common.FileExists(processSpecificProcfile) {
@@ -302,7 +302,7 @@ func updateScale(appName string, clearExisting bool, formationUpdates FormationS
validProcessTypes := make(map[string]bool) validProcessTypes := make(map[string]bool)
if hasProcfile(appName) { if hasProcfile(appName) {
var err error var err error
validProcessTypes, err = processesInProcfile(getProcessSpecificProcfile(appName)) validProcessTypes, err = processesInProcfile(getProcessSpecificProcfilePath(appName))
if err != nil { if err != nil {
return err return err
} }

View File

@@ -267,7 +267,7 @@ func TriggerProcfileGetCommand(appName string, processType string, port int) err
return nil return nil
} }
command, err := getProcfileCommand(getProcessSpecificProcfile(appName), processType, port) command, err := getProcfileCommand(getProcessSpecificProcfilePath(appName), processType, port)
if err != nil { if err != nil {
return err return err
} }