Remove unused Terraform templates

This commit is contained in:
Oliver Davies 2024-08-03 10:39:29 +01:00
parent 4938202813
commit 11b72e35d4
4 changed files with 2 additions and 12 deletions

View file

@ -145,13 +145,6 @@ final class CreateListOfFilesToGenerate
);
}
break;
case (strtolower(ProjectType::Terraform->name)):
$filesToGenerate = collect([
new TemplateFile(data: 'terraform/.gitignore', name: '.gitignore'),
new TemplateFile(data: 'terraform/run', name: 'run'),
]);
break;
}
if (Arr::get($configurationData, 'experimental.createTmuxStartupFile') === true) {

View file

@ -242,7 +242,7 @@ final class ConfigDto
#[Assert\Type('string')]
public string $projectRoot;
#[Assert\Choice(choices: ['drupal', 'fractal', 'laravel', 'php-library', 'sculpin', 'symfony', 'terraform'])]
#[Assert\Choice(choices: ['drupal', 'fractal', 'laravel', 'php-library', 'sculpin', 'symfony'])]
public string $type;
#[Assert\Collection([

View file

@ -12,5 +12,4 @@ enum ProjectType: string
case PHPLibrary = 'php-library';
case Sculpin = 'sculpin';
case Symfony = 'symfony';
case Terraform = 'terraform';
}

View file

@ -32,8 +32,7 @@ class ConfigurationValidatorTest extends KernelTestCase
?array $extraDatabases,
int $expectedViolationCount,
?string $expectedMessage,
): void
{
): void {
$this->configurationDataDto->database = [
'extra_databases' => $extraDatabases,
'type' => 'mariadb',
@ -219,7 +218,6 @@ class ConfigurationValidatorTest extends KernelTestCase
yield 'laravel' => [ProjectType::Laravel->value, 0, null],
yield 'php-library' => [ProjectType::PHPLibrary->value, 0, null],
yield 'symfony' => [ProjectType::Symfony->value, 0, null],
yield 'terraform' => [ProjectType::Terraform->value, 0, null],
];
}