[Nostromo] Allow to overwrite branch with command option

This commit is contained in:
Andrés Montañez
2017-01-04 01:13:51 -03:00
parent da3ff27e28
commit bf458cc35c
2 changed files with 25 additions and 0 deletions
+18
View File
@@ -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
*