mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-27 09:48:55 +02:00
New version. Added getters to config and task.
New concept of "stage" where the task runs.
This commit is contained in:
+8
-1
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
class Mage_Config
|
||||
{
|
||||
private $_environmentName = null;
|
||||
private $_environment = null;
|
||||
private $_scm = null;
|
||||
private $_general = null;
|
||||
@@ -10,7 +11,8 @@ class Mage_Config
|
||||
public function loadEnvironment($environment)
|
||||
{
|
||||
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {
|
||||
$this->_environment = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
|
||||
$this->_environment = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
|
||||
$this->_environmentName = $environment;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +35,11 @@ class Mage_Config
|
||||
return $this->_environment;
|
||||
}
|
||||
|
||||
public function getEnvironmentName()
|
||||
{
|
||||
return $this->_environmentName;
|
||||
}
|
||||
|
||||
public function getSCM()
|
||||
{
|
||||
return $this->_scm;
|
||||
|
||||
Reference in New Issue
Block a user