mirror of https://github.com/hauke68/Magallanes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
688 B
26 lines
688 B
<?php |
|
class Mage_Task_BuiltIn_Deployment_Releases |
|
extends Mage_Task_TaskAbstract |
|
{ |
|
public function getName() |
|
{ |
|
return 'Releasing [built-in]'; |
|
} |
|
|
|
public function run() |
|
{ |
|
if ($this->_config->release('enabled', false) == true) { |
|
$releasesDirectory = $this->_config->release('directory', 'releases'); |
|
$symlink = $this->_config->release('symlink', 'current'); |
|
|
|
$currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId(); |
|
|
|
$result = $this->_runRemoteCommand('ln -sf ' . $currentCopy . ' ' . $symlink); |
|
return $result; |
|
|
|
} else { |
|
return false; |
|
} |
|
} |
|
|
|
} |