mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[Nostromo] Refactor Runtime methods.
This commit is contained in:
@@ -34,11 +34,11 @@ class ReleaseTask extends AbstractTask implements ExecuteOnRollbackInterface
|
||||
|
||||
public function execute()
|
||||
{
|
||||
if (!$this->runtime->getEnvParam('releases', false)) {
|
||||
if (!$this->runtime->getEnvOption('releases', false)) {
|
||||
throw new ErrorException('This task is only available with releases enabled', 40);
|
||||
}
|
||||
|
||||
$hostPath = rtrim($this->runtime->getEnvParam('host_path'), '/');
|
||||
$hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/');
|
||||
$releaseId = $this->runtime->getReleaseId();
|
||||
|
||||
$cmdLinkRelease = sprintf('cd %s && ln -snf releases/%s current', $hostPath, $releaseId);
|
||||
|
||||
Reference in New Issue
Block a user