mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
New version. Added getters to config and task.
New concept of "stage" where the task runs.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -73,7 +73,7 @@ class Mage_Task_BuiltIn_Releases_Rollback
|
||||
|
||||
} else {
|
||||
foreach ($tasksToRun as $taskName) {
|
||||
$task = Mage_Task_Factory::get($taskName, $this->_config, true);
|
||||
$task = Mage_Task_Factory::get($taskName, $this->_config, true, 'deploy');
|
||||
$task->init();
|
||||
Mage_Console::output('Running <purple>' . $task->getName() . '</purple> ... ', 2, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user