chore: rename function
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user