You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
525 B

<?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;
}
}