You are here

protected function Provision_ComposerGitCreateProject::buildCheckoutVersionCommand in Aegir Deploy 7.3

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

File

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

Class

Provision_ComposerGitCreateProject
@file The Provision_ComposerGitCreateProject class.

Code

protected function buildCheckoutVersionCommand() {
  $command = 'cd ';
  $command .= escapeshellarg(trim($this->path));
  $command .= ' && git checkout ';
  $command .= escapeshellarg(trim($this->version));
  return $command;
}