chore: rename function

This commit is contained in:
Jose Diaz-Gonzalez committed 2023-02-14 03:08:02 -05:00
1 parent c1da419d01
commit a53ead6c64
2 files changed
+3 -3

No files matched your search

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