Skip to content

Commit

Permalink
DB-1369: Added support to specify profile at the time of installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderkakarrot committed Feb 8, 2022
1 parent 4c3eb3a commit 24e3338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/BuildToolsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,8 @@ protected function doInstallSite(
'account-name' => '',
'account-pass' => '',
'site-mail' => '',
'site-name' => ''
'site-name' => '',
'profile' => 'standard'
],
$app = 'Drupal'
)
Expand Down Expand Up @@ -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}';
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/ProjectCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -264,6 +265,7 @@ public function createProject(
'template-repository' => '',
'ci-template' => '[email protected]:pantheon-systems/tbt-ci-templates.git',
'clu-cron-pattern' => '',
'profile' => 'standard'
])
{
$this->warnAboutOldPhp();
Expand Down

0 comments on commit 24e3338

Please sign in to comment.