From 24e333846e0dfc30633619355c538029906692ad Mon Sep 17 00:00:00 2001 From: "pratik.coderx@gmail.com" Date: Tue, 8 Feb 2022 19:23:31 +0530 Subject: [PATCH] DB-1369: Added support to specify profile at the time of installation. --- src/Commands/BuildToolsBase.php | 5 +++-- src/Commands/ProjectCreateCommand.php | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Commands/BuildToolsBase.php b/src/Commands/BuildToolsBase.php index 7f871551..d336fc4d 100644 --- a/src/Commands/BuildToolsBase.php +++ b/src/Commands/BuildToolsBase.php @@ -636,7 +636,8 @@ protected function doInstallSite( 'account-name' => '', 'account-pass' => '', 'site-mail' => '', - 'site-name' => '' + 'site-name' => '', + 'profile' => 'standard' ], $app = 'Drupal' ) @@ -761,7 +762,7 @@ protected function getInstallCommandTemplate($composer_json, $app) 'wp option update permalink_structure "/%postname%/"', ]; } - return 'drush site-install --yes --account-mail={account-mail} --account-name={account-name} --account-pass={account-pass} --site-mail={site-mail} --site-name={site-name}'; + return 'drush site-install {profile} --yes --account-mail={account-mail} --account-name={account-name} --account-pass={account-pass} --site-mail={site-mail} --site-name={site-name}'; } /** diff --git a/src/Commands/ProjectCreateCommand.php b/src/Commands/ProjectCreateCommand.php index 00c2c5c5..2fe6ad62 100644 --- a/src/Commands/ProjectCreateCommand.php +++ b/src/Commands/ProjectCreateCommand.php @@ -238,6 +238,7 @@ public function copyCiFiles($ci_provider, $created_folder, $cms_version, $ci_tem * @option template-repository Composer repository if package is hosted on a private registry or url to git. * @option ci-template Git repo that contains the CI scripts that will be copied if there is no ci in the source project. * @option clu-cron-pattern Specify a cron pattern to override the given CI provider's clu task schedule, if applicable. For example, '0 0 * * 1' to run once a week at midnight on monday. + * @option profile The profile to be used at the time of the installation. */ public function createProject( $source, @@ -264,6 +265,7 @@ public function createProject( 'template-repository' => '', 'ci-template' => 'git@github.com:pantheon-systems/tbt-ci-templates.git', 'clu-cron-pattern' => '', + 'profile' => 'standard' ]) { $this->warnAboutOldPhp();