mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-16 20:45:02 +02:00
1. Change parameters names for git clone task
This commit is contained in:
parent
9873b6ab71
commit
07431a0bee
|
@ -26,13 +26,14 @@ class GitCloneTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
$repository = $this->getConfig()->deployment('repository');
|
||||||
|
$branch = $this->getConfig()->deployment('branch', 'master');
|
||||||
|
$deployToDirectory = $this->getConfig()->deployment('to');
|
||||||
|
|
||||||
$repository = $this->getConfig()->deployment('git-repository');
|
if (!$repository or !$branch or !$deployToDirectory) return false;
|
||||||
$branch = $this->getConfig()->deployment('git-branch', 'master');
|
|
||||||
|
|
||||||
$this->checkOverrideRelease();
|
$this->checkOverrideRelease();
|
||||||
|
|
||||||
$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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue