mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Changes on console feedback colors. Example of User Tasks.
This commit is contained in:
@@ -2,14 +2,29 @@
|
||||
class Mage_Task_BuiltIn_Scm_Update
|
||||
extends Mage_Task_TaskAbstract
|
||||
{
|
||||
private $_name = 'SCM Update [built-in]';
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'SCM Update (built-in)';
|
||||
return $this->_name;
|
||||
}
|
||||
|
||||
public function run($config)
|
||||
public function init()
|
||||
{
|
||||
switch ($config['scm']['type']) {
|
||||
switch ($this->_config['scm']['type']) {
|
||||
case 'git':
|
||||
$this->_name = 'SCM Update (GIT) [built-in]';
|
||||
break;
|
||||
|
||||
case 'svn':
|
||||
$this->_name = 'SCM Update (Subversion) [built-in]';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
switch ($this->_config['scm']['type']) {
|
||||
case 'git':
|
||||
$command = 'git pull';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user