chore: move function to internal
This commit is contained in:
@@ -315,6 +315,22 @@ func removeProcfile(appName string) error {
|
||||
return os.Remove(procfile)
|
||||
}
|
||||
|
||||
func restorePrep() error {
|
||||
apps, err := common.DokkuApps()
|
||||
if err != nil {
|
||||
common.LogWarn(err.Error())
|
||||
return nil
|
||||
}
|
||||
|
||||
for _, appName := range apps {
|
||||
if err := common.PlugnTrigger("proxy-clear-config", []string{appName}...); err != nil {
|
||||
return fmt.Errorf("Error clearing proxy config: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func scaleReport(appName string) error {
|
||||
scalefilePath := getScalefilePath(appName)
|
||||
lines, err := common.FileToSlice(scalefilePath)
|
||||
|
||||
Reference in New Issue
Block a user