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