|
|
@ -27,8 +27,8 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getName() |
|
|
|
public function getName() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($this->getConfig()->release('enabled', false) == true) { |
|
|
|
if ($this->getConfig()->release('enabled', false) === true) { |
|
|
|
if ($this->getConfig()->getParameter('overrideRelease', false) == true) { |
|
|
|
if ($this->getConfig()->getParameter('overrideRelease', false) === true) { |
|
|
|
return 'Deploy via TarGz (with Releases override) [built-in]'; |
|
|
|
return 'Deploy via TarGz (with Releases override) [built-in]'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return 'Deploy via TarGz (with Releases) [built-in]'; |
|
|
|
return 'Deploy via TarGz (with Releases) [built-in]'; |
|
|
@ -50,7 +50,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware |
|
|
|
|
|
|
|
|
|
|
|
// If we are working with releases |
|
|
|
// If we are working with releases |
|
|
|
$deployToDirectory = $this->getConfig()->deployment('to'); |
|
|
|
$deployToDirectory = $this->getConfig()->deployment('to'); |
|
|
|
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'); |
|
|
|
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/') |
|
|
|
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/') |
|
|
|
. '/' . $releasesDirectory |
|
|
|
. '/' . $releasesDirectory |
|
|
|