Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/deployment_helper.php
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$ret = $ret && $this->deploy($module_name); | $ret = $ret && $this->deploy($module_name); | ||||
} | } | ||||
if ( $ret && !$this->dryRun ) { | if ( $ret && !$this->dryRun ) { | ||||
$this->resetCaches(); | $this->resetCaches(); | ||||
$this->refreshThemes(); | $this->refreshThemes(); | ||||
$this->dumpAssets(); | |||||
} | } | ||||
if ( !$this->isCommandLine ) { | if ( !$this->isCommandLine ) { | ||||
echo kUtil::escape($this->_runShellScript()); | echo kUtil::escape($this->_runShellScript()); | ||||
echo '</pre>' . PHP_EOL; | echo '</pre>' . PHP_EOL; | ||||
} | } | ||||
return $ret; | return $ret; | ||||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | |||||
private function refreshThemes() | private function refreshThemes() | ||||
{ | { | ||||
$this->out('Refreshing Theme Files ... '); | $this->out('Refreshing Theme Files ... '); | ||||
$this->_event->CallSubEvent('OnRebuildThemes'); | $this->_event->CallSubEvent('OnRebuildThemes'); | ||||
$this->displayStatus('OK'); | $this->displayStatus('OK'); | ||||
} | } | ||||
/** | /** | ||||
* Dumps assets | |||||
* | |||||
* @return void | |||||
*/ | |||||
private function dumpAssets() | |||||
{ | |||||
$this->out('Dumping Assets ... '); | |||||
$this->_event->CallSubEvent('OnDumpAssets'); | |||||
$this->displayStatus('OK'); | |||||
} | |||||
/** | |||||
* Runs database upgrade script | * Runs database upgrade script | ||||
* | * | ||||
* @return bool | * @return bool | ||||
* @access private | * @access private | ||||
*/ | */ | ||||
private function upgradeDatabase() | private function upgradeDatabase() | ||||
{ | { | ||||
$this->loadAppliedRevisions(); | $this->loadAppliedRevisions(); | ||||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |