forked from toolshed/abra
refactor: handle STACK_NAME override in one place
This commit is contained in:
@ -46,6 +46,9 @@ type App struct {
|
||||
|
||||
// StackName gets what the docker safe stack name is for the app
|
||||
func (a App) StackName() string {
|
||||
if a.Env["STACK_NAME"] != "" {
|
||||
return a.Env["STACK_NAME"]
|
||||
}
|
||||
return SanitiseAppName(a.Name)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user