@@ -47,9 +47,9 @@ type nopCloser struct {
4747
4848func (nopCloser )Close ()error {return nil }
4949
50- func createRequiredFilesProject (brand upsun.CloudBrand ,rootDirectory ,projectSlug ,templateName string ,minorPHPVersion string ,cloudServices []* CloudService ,dump ,force bool ) ([]string ,error ) {
50+ func createRequiredFilesProject (product upsun.CloudProduct ,rootDirectory ,projectSlug ,templateName string ,minorPHPVersion string ,cloudServices []* CloudService ,dump ,force bool ) ([]string ,error ) {
5151createdFiles := []string {}
52- templates ,err := getTemplates (brand ,rootDirectory ,templateName ,minorPHPVersion )
52+ templates ,err := getTemplates (product ,rootDirectory ,templateName ,minorPHPVersion )
5353if err != nil {
5454return nil ,errors .Wrap (err ,"could not determine template to use" )
5555}
@@ -158,7 +158,7 @@ func isValidFilePath(toTest string) bool {
158158return true
159159}
160160
161- func getTemplates (brand upsun.CloudBrand ,rootDirectory ,chosenTemplateName string ,minorPHPVersion string ) (map [string ]* template.Template ,error ) {
161+ func getTemplates (product upsun.CloudProduct ,rootDirectory ,chosenTemplateName string ,minorPHPVersion string ) (map [string ]* template.Template ,error ) {
162162var foundTemplate * configTemplate
163163
164164s := terminal .NewSpinner (terminal .Stderr )
@@ -186,7 +186,7 @@ func getTemplates(brand upsun.CloudBrand, rootDirectory, chosenTemplateName stri
186186}
187187}
188188
189- if brand == upsun .UpsunBrand {
189+ if product == upsun .Flex {
190190directory = filepath .Join (directory ,"upsun" )
191191}
192192if isURL ,isFile := isValidURL (chosenTemplateName ),isValidFilePath (chosenTemplateName );isURL || isFile {
@@ -298,7 +298,7 @@ func getTemplates(brand upsun.CloudBrand, rootDirectory, chosenTemplateName stri
298298
299299templateFuncs := getTemplateFuncs (rootDirectory ,minorPHPVersion )
300300var templates map [string ]* template.Template
301- if brand == upsun .UpsunBrand {
301+ if product == upsun .Flex {
302302templates = map [string ]* template.Template {
303303".upsun/config.yaml" :template .Must (template .New ("output" ).Funcs (templateFuncs ).Parse (foundTemplate .Template )),
304304"php.ini" :template .Must (template .New ("output" ).Funcs (templateFuncs ).Parse (string (phpini ))),