0
0
forked from toolshed/abra

refactor: handle STACK_NAME override in one place

This commit is contained in:
2021-10-12 01:14:14 +02:00
parent 777d49ac1d
commit 4a01e411be
4 changed files with 5 additions and 14 deletions

View File

@ -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)
}