New version. Added getters to config and task.

New concept of "stage" where the task runs.
This commit is contained in:
Andrs Montaez
2012-02-24 13:39:40 -02:00
parent de772028bb
commit 3f0efc1a42
9 changed files with 39 additions and 17 deletions
+8 -1
View File
@@ -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;