From 9e11067bd6fbcda576ca2c8dc92f40368015d659 Mon Sep 17 00:00:00 2001 From: Raksha Bharuka Date: Tue, 29 Oct 2024 19:45:34 +0530 Subject: [PATCH] use acms during fixture creation --- src/Domain/Fixture/FixtureCreator.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Domain/Fixture/FixtureCreator.php b/src/Domain/Fixture/FixtureCreator.php index 2a28fa0e2..cf842fd22 100644 --- a/src/Domain/Fixture/FixtureCreator.php +++ b/src/Domain/Fixture/FixtureCreator.php @@ -978,4 +978,19 @@ private function displaySecurityVulnerabilityAdvisories(): void { } } + /** + * Runs ACMS commands. + */ + public function runAcmsCommands(): void { + if ($this->fixtureInspector->getInstalledPackageVersionPretty('acquia/acquia_cms') === '~') { + return; + } + $this->output->comment("ACMS commands started... "); + $this->output->section('Run ACMS Site Build'); + $this->processRunner->runFixtureVendorBin(['acms', 'acms:build', 'acquia_cms_community', '--no-interaction']); + $this->output->section('Run ACMS Site Install'); + $this->processRunner->runFixtureVendorBin(['acms', 'site:install', 'acquia_cms_community', '--no-interaction']); + $this->output->comment("ACMS commands executed... "); + } + }