getDeployPackagePath() public static méthode

{deploy_from}/{env}/{project}-YYmmdd-HHiiss.tar.gz
public static getDeployPackagePath ( $version ) : string
$version
Résultat string
Exemple #1
0
 /**
  * 收尾做处理工作,如清理本地的部署空间
  *
  * @param $version
  * @return bool|int
  */
 public function cleanUpLocal($version)
 {
     $cmd[] = 'rm -rf ' . Project::getDeployWorkspace($version);
     if (Project::getAnsibleStatus()) {
         $cmd[] = 'rm -f ' . Project::getDeployPackagePath($version);
     }
     if ($this->config->repo_type == Project::REPO_SVN) {
         $cmd[] = sprintf('rm -rf %s-svn', rtrim(Project::getDeployWorkspace($version), '/'));
     }
     $command = join(' && ', $cmd);
     return $this->runLocalCommand($command);
 }
Exemple #2
0
 /**
  * 收尾做处理工作,如清理本地的部署空间
  *
  * @param $version
  * @return bool|int
  */
 public function cleanUpLocal($version)
 {
     $cmd[] = 'rm -rf ' . Project::getDeployWorkspace($version);
     $cmd[] = sprintf('rm -f %s/*.tar.gz', dirname(Project::getDeployPackagePath($version)));
     $command = join(' && ', $cmd);
     return $this->runLocalCommand($command);
 }