You are here

protected function Provision_ComposerGitCreateProject::createProject in Aegir Deploy 7.3

1 call to Provision_ComposerGitCreateProject::createProject()
Provision_ComposerGitCreateProject::deployPlatform in modules/platform_composer_git/drush/Provision/ComposerGitCreateProject.php

File

modules/platform_composer_git/drush/Provision/ComposerGitCreateProject.php, line 38
The Provision_ComposerGitCreateProject class.

Class

Provision_ComposerGitCreateProject
@file The Provision_ComposerGitCreateProject class.

Code

protected function createProject() {
  $this
    ->notice(dt('Creating `:version` version of project from `:project_url` at `:path`', [
    ':version' => $this->version,
    ':project_url' => $this->project_url,
    ':path' => $this->path,
  ]));
  $commands = [
    $this
      ->buildCloneProjectCommand(),
    $this
      ->buildCheckoutVersionCommand(),
    $this
      ->buildCreateProjectCommand(),
  ];
  foreach ($commands as $command) {
    $result = $this
      ->execCommand($command);
  }
  return $result;
}