New version. Added getters to config and task.

New concept of "stage" where the task runs.
This commit is contained in:
Andrs Montaez
2012-02-24 13:39:40 -02:00
parent de772028bb
commit 3f0efc1a42
9 changed files with 39 additions and 17 deletions
+6 -3
View File
@@ -16,10 +16,13 @@ class Mage_Task_BuiltIn_Deployment_Releases
$currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId();
$userGroup = '';
$resultFetch = $this->_runRemoteCommand('ls -ld ' . $symlink . ' | awk \'{print \$3\":\"\$4}\'', $userGroup);
// Fetch the user and group from base directory
$userGroup = '33:33';
$resultFetch = $this->_runRemoteCommand('ls -ld . | awk \'{print \$3\":\"\$4}\'', $userGroup);
// Remove symlink if exists; create new symlink and change owners
$command = 'rm -f ' . $symlink
. ' && '
. ' ; '
. 'ln -sf ' . $currentCopy . ' ' . $symlink
. ' && '
. 'chown -h ' . $userGroup . ' ' . $symlink