mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 18:48:56 +02:00
[Nostromo] Refactor Runtime methods.
This commit is contained in:
@@ -70,7 +70,7 @@ class ChangeBranchTask extends AbstractTask
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$branch = $this->runtime->getEnvParam('branch', 'master');
|
||||
$branch = $this->runtime->getEnvOption('branch', 'master');
|
||||
$options = array_merge(
|
||||
['path' => 'git', 'branch' => $branch],
|
||||
$this->options
|
||||
|
||||
@@ -43,7 +43,7 @@ class UpdateTask extends AbstractTask
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$branch = $this->runtime->getEnvParam('branch', 'master');
|
||||
$branch = $this->runtime->getEnvOption('branch', 'master');
|
||||
$options = array_merge(
|
||||
['path' => 'git', 'branch' => $branch],
|
||||
$this->options
|
||||
|
||||
Reference in New Issue
Block a user