From 39988504d991b52aca1cf090abf6de9603f13e7c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 3 Aug 2024 10:44:06 +0100 Subject: [PATCH] fractal: create both Docker and Nix files if needed The two aren't mutually exclusive so a project could use both. --- src/Action/CreateListOfFilesToGenerate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Action/CreateListOfFilesToGenerate.php b/src/Action/CreateListOfFilesToGenerate.php index 28433bd..5528335 100644 --- a/src/Action/CreateListOfFilesToGenerate.php +++ b/src/Action/CreateListOfFilesToGenerate.php @@ -55,7 +55,9 @@ final class CreateListOfFilesToGenerate $filesToGenerate->push(new TemplateFile(data: 'fractal/.yarnrc', name: '.yarnrc')); $filesToGenerate->push(new TemplateFile(data: 'fractal/Dockerfile', name: 'Dockerfile')); $filesToGenerate->push(new TemplateFile(data: 'fractal/docker-compose.yaml', name: 'docker-compose.yaml')); - } elseif ($configDto->isFlake) { + } + + if ($configDto->isFlake) { $filesToGenerate->push(new TemplateFile(data: 'fractal/.envrc', name: '.envrc')); $filesToGenerate->push(new TemplateFile(data: 'fractal/flake.nix', name: 'flake.nix')); }