New reorder of classes and configuration. New instantiation of Tasks.

This commit is contained in:
Andrs Montaez
2011-11-23 01:17:06 -02:00
parent 3caa3d7313
commit b161220e69
23 changed files with 257 additions and 108 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
class Mage_Task_BuiltIn_Scm_Update
extends Mage_Task_TaskAbstract
{
public function getName()
{
return 'SCM Update (built-in)';
}
public function run($config)
{
switch ($config['scm']['type']) {
case 'git':
$command = 'git pull';
break;
case 'svn':
$command = 'svn update';
break;
}
$result = $this->_runLocalCommand($command);
return $result;
}
}