mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 23:08:56 +02:00
[Nostromo] Refactor Runtime, added getEnvParam method
This commit is contained in:
@@ -33,7 +33,7 @@ class PrepareTask extends AbstractTask
|
||||
|
||||
public function execute()
|
||||
{
|
||||
if (!$this->runtime->getEnvironmentConfig('releases', false)) {
|
||||
if (!$this->runtime->getEnvParam('releases', false)) {
|
||||
throw new ErrorException('This task is only available with releases enabled', 40);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class PrepareTask extends AbstractTask
|
||||
|
||||
protected function getExcludes()
|
||||
{
|
||||
$excludes = $this->runtime->getEnvironmentConfig('exclude', []);
|
||||
$excludes = $this->runtime->getEnvParam('exclude', []);
|
||||
$excludes = array_merge(['.git'], $excludes);
|
||||
|
||||
foreach ($excludes as &$exclude) {
|
||||
|
||||
Reference in New Issue
Block a user