mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
feat: switch from _all_ to _default_ for process type
This is a special process type that signifies it's the default value for everything.
This commit is contained in:
@@ -57,7 +57,7 @@ func clearByRequestType(appName string, processType string, requestType string)
|
||||
humanAppName = "default"
|
||||
}
|
||||
message := fmt.Sprintf("clearing %v %v", humanAppName, noun)
|
||||
if processType != "_all_" {
|
||||
if processType != "_default_" {
|
||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||
}
|
||||
common.LogInfo2Quiet(message)
|
||||
@@ -83,7 +83,7 @@ func clearByRequestType(appName string, processType string, requestType string)
|
||||
|
||||
func setRequestType(appName string, processType string, r Resource, requestType string) error {
|
||||
if len(processType) == 0 {
|
||||
processType = "_all_"
|
||||
processType = "_default_"
|
||||
}
|
||||
|
||||
resources := map[string]string{
|
||||
@@ -116,7 +116,7 @@ func setRequestType(appName string, processType string, r Resource, requestType
|
||||
message = fmt.Sprintf("Setting default resource %v", noun)
|
||||
}
|
||||
|
||||
if processType != "_all_" {
|
||||
if processType != "_default_" {
|
||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||
}
|
||||
common.LogInfo2Quiet(message)
|
||||
@@ -147,7 +147,7 @@ func reportRequestType(appName string, processType string, requestType string) {
|
||||
humanAppName = "default"
|
||||
}
|
||||
message := fmt.Sprintf("resource %v %v information", noun, humanAppName)
|
||||
if processType != "_all_" {
|
||||
if processType != "_default_" {
|
||||
message = fmt.Sprintf("%v (%v)", message, processType)
|
||||
}
|
||||
common.LogInfo2Quiet(message)
|
||||
|
||||
Reference in New Issue
Block a user