feat: implement ps-can-scale
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
sh "github.com/codeskyblue/go-sh"
|
||||
@@ -265,6 +266,11 @@ func TriggerProcfileRemove(appName string) error {
|
||||
return removeProcfile(appName)
|
||||
}
|
||||
|
||||
// TriggerPsCanScale sets whether or not a user can scale an app with ps:scale
|
||||
func TriggerPsCanScale(appName string, canScale bool) error {
|
||||
return common.PropertyWrite("ps", appName, "can-scale", strconv.FormatBool(canScale))
|
||||
}
|
||||
|
||||
// TriggerPsCurrentScale prints out the current scale contents (process-type=quantity) delimited by newlines
|
||||
func TriggerPsCurrentScale(appName string) error {
|
||||
formations, err := getFormations(appName)
|
||||
|
||||
Reference in New Issue
Block a user