mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 14:58:57 +02:00
[Nostromo] Allow to overwrite branch with command option
This commit is contained in:
@@ -234,6 +234,24 @@ class Runtime
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwrites an Environment configuration option
|
||||
*
|
||||
* @param $key
|
||||
* @param $value
|
||||
* @return Runtime
|
||||
*/
|
||||
public function setEnvironmentConfig($key, $value)
|
||||
{
|
||||
if (array_key_exists('environments', $this->configuration) && is_array($this->configuration['environments'])) {
|
||||
if (array_key_exists($this->environment, $this->configuration['environments'])) {
|
||||
$this->configuration['environments'][$this->environment][$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the working Environment
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user