mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
Remove unused Terraform templates
This commit is contained in:
parent
4938202813
commit
11b72e35d4
|
@ -145,13 +145,6 @@ final class CreateListOfFilesToGenerate
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
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) {
|
if (Arr::get($configurationData, 'experimental.createTmuxStartupFile') === true) {
|
||||||
|
|
|
@ -242,7 +242,7 @@ final class ConfigDto
|
||||||
#[Assert\Type('string')]
|
#[Assert\Type('string')]
|
||||||
public string $projectRoot;
|
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;
|
public string $type;
|
||||||
|
|
||||||
#[Assert\Collection([
|
#[Assert\Collection([
|
||||||
|
|
|
@ -12,5 +12,4 @@ enum ProjectType: string
|
||||||
case PHPLibrary = 'php-library';
|
case PHPLibrary = 'php-library';
|
||||||
case Sculpin = 'sculpin';
|
case Sculpin = 'sculpin';
|
||||||
case Symfony = 'symfony';
|
case Symfony = 'symfony';
|
||||||
case Terraform = 'terraform';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,7 @@ class ConfigurationValidatorTest extends KernelTestCase
|
||||||
?array $extraDatabases,
|
?array $extraDatabases,
|
||||||
int $expectedViolationCount,
|
int $expectedViolationCount,
|
||||||
?string $expectedMessage,
|
?string $expectedMessage,
|
||||||
): void
|
): void {
|
||||||
{
|
|
||||||
$this->configurationDataDto->database = [
|
$this->configurationDataDto->database = [
|
||||||
'extra_databases' => $extraDatabases,
|
'extra_databases' => $extraDatabases,
|
||||||
'type' => 'mariadb',
|
'type' => 'mariadb',
|
||||||
|
@ -219,7 +218,6 @@ class ConfigurationValidatorTest extends KernelTestCase
|
||||||
yield 'laravel' => [ProjectType::Laravel->value, 0, null],
|
yield 'laravel' => [ProjectType::Laravel->value, 0, null],
|
||||||
yield 'php-library' => [ProjectType::PHPLibrary->value, 0, null],
|
yield 'php-library' => [ProjectType::PHPLibrary->value, 0, null],
|
||||||
yield 'symfony' => [ProjectType::Symfony->value, 0, null],
|
yield 'symfony' => [ProjectType::Symfony->value, 0, null],
|
||||||
yield 'terraform' => [ProjectType::Terraform->value, 0, null],
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue