Major overhauling and refactoring of Magallanes Command and Tasks modulairty and workflow.

ADVICE: there is no Backwards Compatibility with custom tasks, those
using the _config instance will be broken or those using the
getEnvironmentName().
This commit is contained in:
Andrés Montañez
2012-09-21 00:23:07 -03:00
parent 05b102b273
commit 811c83e13a
29 changed files with 803 additions and 639 deletions
+7 -3
View File
@@ -11,7 +11,7 @@ class Mage_Task_BuiltIn_Scm_Update
public function init()
{
switch ($this->_config->scm('type')) {
switch ($this->getConfig()->scm('type')) {
case 'git':
$this->_name = 'SCM Update (GIT) [built-in]';
break;
@@ -24,7 +24,7 @@ class Mage_Task_BuiltIn_Scm_Update
public function run()
{
switch ($this->_config->scm('type')) {
switch ($this->getConfig()->scm('type')) {
case 'git':
$command = 'git pull';
break;
@@ -32,10 +32,14 @@ class Mage_Task_BuiltIn_Scm_Update
case 'svn':
$command = 'svn update';
break;
default:
return false;
break;
}
$result = $this->_runLocalCommand($command);
$this->_config->reloadConfig();
$this->getConfig()->reload();
return $result;
}