mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user