function check_revision_status($deployment) { $currRev = RevDeploy::getDeploymentRev($deployment); $nextRev = RevDeploy::getDeploymentNextRev($deployment); if ($currRev == $nextRev) { $incrRev = RevDeploy::incrDeploymentNextRev($deployment); CopyDeploy::copyDeploymentRevision($deployment, $currRev, $incrRev); } return true; }
/** * checkDeploymentRevStatus * * @param mixed $deployment deployment we are processing * * @access public * @return void */ public function checkDeploymentRevStatus($deployment) { $currRev = RevDeploy::getDeploymentRev($deployment); $nextRev = RevDeploy::getDeploymentNextRev($deployment); if ($currRev === false && $nextRev === false) { return; } if ($currRev == $nextRev) { $incrRev = RevDeploy::incrDeploymentNextRev($deployment); CopyDeploy::copyDeploymentRevision($deployment, $currRev, $incrRev); } }