|
|
@ -37,7 +37,7 @@ class ListTask extends AbstractTask implements IsReleaseAware |
|
|
|
if ($this->getConfig()->release('enabled', false) == true) { |
|
|
|
if ($this->getConfig()->release('enabled', false) == true) { |
|
|
|
$releasesDirectory = $this->getConfig()->release('directory', 'releases'); |
|
|
|
$releasesDirectory = $this->getConfig()->release('directory', 'releases'); |
|
|
|
$symlink = $this->getConfig()->release('symlink', 'current'); |
|
|
|
$symlink = $this->getConfig()->release('symlink', 'current'); |
|
|
|
|
|
|
|
|
|
|
|
Console::output('Releases available on <dark_gray>' . $this->getConfig()->getHost() . '</dark_gray>'); |
|
|
|
Console::output('Releases available on <dark_gray>' . $this->getConfig()->getHost() . '</dark_gray>'); |
|
|
|
|
|
|
|
|
|
|
|
// Get Releases |
|
|
|
// Get Releases |
|
|
@ -46,7 +46,7 @@ class ListTask extends AbstractTask implements IsReleaseAware |
|
|
|
$releases = ($output == '') ? array() : explode(PHP_EOL, $output); |
|
|
|
$releases = ($output == '') ? array() : explode(PHP_EOL, $output); |
|
|
|
|
|
|
|
|
|
|
|
// Get Current |
|
|
|
// Get Current |
|
|
|
$result = $this->runCommandRemote('ls -l ' . $symlink, $output); |
|
|
|
$result = $this->runCommandRemote('ls -l ' . $symlink, $output) && $result; |
|
|
|
$currentRelease = explode('/', $output); |
|
|
|
$currentRelease = explode('/', $output); |
|
|
|
$currentRelease = trim(array_pop($currentRelease)); |
|
|
|
$currentRelease = trim(array_pop($currentRelease)); |
|
|
|
|
|
|
|
|
|
|
|