|
|
@ -81,15 +81,18 @@ class Mage_Task_Deploy |
|
|
|
// Run Post-Deployment Tasks |
|
|
|
// Run Post-Deployment Tasks |
|
|
|
$this->_runNonDeploymentTasks('post-deploy', $config, 'Post-Deployment'); |
|
|
|
$this->_runNonDeploymentTasks('post-deploy', $config, 'Post-Deployment'); |
|
|
|
|
|
|
|
|
|
|
|
// Time Information General |
|
|
|
|
|
|
|
$timeText = $this->_transcurredTime(time() - $this->_startTime); |
|
|
|
|
|
|
|
Mage_Console::output('Total time: <dark_gray>' . $timeText . '</dark_gray>.'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Time Information Hosts |
|
|
|
// Time Information Hosts |
|
|
|
if ($this->_hostsCount > 0) { |
|
|
|
if ($this->_hostsCount > 0) { |
|
|
|
|
|
|
|
$timeTextHost = $this->_transcurredTime($this->_endTimeHosts - $this->_startTimeHosts); |
|
|
|
|
|
|
|
Mage_Console::output('Average time for deployment: <dark_gray>' . $timeTextHost . '</dark_gray>.'); |
|
|
|
|
|
|
|
|
|
|
|
$timeTextPerHost = $this->_transcurredTime(round(($this->_endTimeHosts - $this->_startTimeHosts) / $this->_hostsCount)); |
|
|
|
$timeTextPerHost = $this->_transcurredTime(round(($this->_endTimeHosts - $this->_startTimeHosts) / $this->_hostsCount)); |
|
|
|
Mage_Console::output('Average time per host: <dark_gray>' . $timeTextPerHost . '</dark_gray>.'); |
|
|
|
Mage_Console::output('Average time per host: <dark_gray>' . $timeTextPerHost . '</dark_gray>.'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Time Information General |
|
|
|
|
|
|
|
$timeText = $this->_transcurredTime(time() - $this->_startTime); |
|
|
|
|
|
|
|
Mage_Console::output('Total time: <dark_gray>' . $timeText . '</dark_gray>.', 1, 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private function _runNonDeploymentTasks($stage, Mage_Config $config, $title) |
|
|
|
private function _runNonDeploymentTasks($stage, Mage_Config $config, $title) |
|
|
|