|
|
|
@ -95,26 +95,29 @@ class Mage_Command_BuiltIn_Deploy
|
|
|
|
|
|
|
|
|
|
// Execute the Post-Release Tasks |
|
|
|
|
foreach ($hosts as $host) { |
|
|
|
|
Mage_Console::output('Starting <dark_gray>Post-Release</dark_gray> tasks for <dark_gray>' . $host . '</dark_gray>:'); |
|
|
|
|
$this->getConfig()->setHost($host); |
|
|
|
|
$tasksToRun = $this->getConfig()->getTasks('post-release'); |
|
|
|
|
$tasks = count($tasksToRun); |
|
|
|
|
$completedTasks = 0; |
|
|
|
|
if (count($tasksToRun) > 0) { |
|
|
|
|
$this->getConfig()->setHost($host); |
|
|
|
|
$tasksToRun = $this->getConfig()->getTasks('post-release'); |
|
|
|
|
$tasks = count($tasksToRun); |
|
|
|
|
$completedTasks = 0; |
|
|
|
|
|
|
|
|
|
foreach ($tasksToRun as $task) { |
|
|
|
|
$task = Mage_Task_Factory::get($task, $this->getConfig(), false, 'post-release'); |
|
|
|
|
Mage_Console::output('Starting <dark_gray>Post-Release</dark_gray> tasks for <dark_gray>' . $host . '</dark_gray>:'); |
|
|
|
|
|
|
|
|
|
if ($this->_runTask($task)) { |
|
|
|
|
$completedTasks++; |
|
|
|
|
foreach ($tasksToRun as $task) { |
|
|
|
|
$task = Mage_Task_Factory::get($task, $this->getConfig(), false, 'post-release'); |
|
|
|
|
|
|
|
|
|
if ($this->_runTask($task)) { |
|
|
|
|
$completedTasks++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($completedTasks == $tasks) { |
|
|
|
|
$tasksColor = 'green'; |
|
|
|
|
} else { |
|
|
|
|
$tasksColor = 'red'; |
|
|
|
|
if ($completedTasks == $tasks) { |
|
|
|
|
$tasksColor = 'green'; |
|
|
|
|
} else { |
|
|
|
|
$tasksColor = 'red'; |
|
|
|
|
} |
|
|
|
|
Mage_Console::output('Finished <dark_gray>Post-Release</dark_gray> tasks for <dark_gray>' . $host . '</dark_gray>: <' . $tasksColor . '>' . $completedTasks . '/' . $tasks . '</' . $tasksColor . '> tasks done.', 1, 3); |
|
|
|
|
} |
|
|
|
|
Mage_Console::output('Finished <dark_gray>Post-Release</dark_gray> tasks for <dark_gray>' . $host . '</dark_gray>: <' . $tasksColor . '>' . $completedTasks . '/' . $tasks . '</' . $tasksColor . '> tasks done.', 1, 3); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|