mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
New PHAR compiler for the library
This commit is contained in:
+24
-16
@@ -25,22 +25,25 @@ class Mage_Console
|
||||
if ($this->_args[0] == 'deploy') {
|
||||
$this->_action = 'deploy';
|
||||
|
||||
} else if ($this->_args[0] == 'releases') {
|
||||
} else if ($this->_args[0] == 'releases') {
|
||||
$this->_action = 'releases';
|
||||
|
||||
} else if ($this->_args[0] == 'update') {
|
||||
$this->_action = 'update';
|
||||
|
||||
} else if ($this->_args[0] == 'compile') {
|
||||
$this->_action = 'compile';
|
||||
|
||||
} else if ($this->_args[0] == 'add') {
|
||||
$this->_action = 'add';
|
||||
|
||||
} else if ($this->_args[0] == 'install') {
|
||||
$this->_action = 'install';
|
||||
|
||||
} else if ($this->_args[0] == 'upgrade') {
|
||||
} else if ($this->_args[0] == 'upgrade') {
|
||||
$this->_action = 'upgrade';
|
||||
|
||||
} else if ($this->_args[0] == 'version') {
|
||||
} else if ($this->_args[0] == 'version') {
|
||||
$this->_action = 'version';
|
||||
|
||||
} else if ($this->_args[0] == 'init') {
|
||||
@@ -126,10 +129,10 @@ class Mage_Console
|
||||
$config->loadSCM();
|
||||
|
||||
// Logging
|
||||
$showGrettings = true;
|
||||
if (in_array($this->getAction(), array('install', 'upgrade', 'version'))) {
|
||||
$showGrettings = true;
|
||||
if (in_array($this->getAction(), array('install', 'upgrade', 'version'))) {
|
||||
self::$_logEnabled = false;
|
||||
$showGrettings = false;
|
||||
$showGrettings = false;
|
||||
} else {
|
||||
self::$_logEnabled = $config->general('logging', false);
|
||||
}
|
||||
@@ -145,19 +148,19 @@ class Mage_Console
|
||||
$task->run($config);
|
||||
break;
|
||||
|
||||
case 'releases':
|
||||
case 'releases':
|
||||
$task = new Mage_Task_Releases;
|
||||
switch ($this->_args[1]) {
|
||||
case 'list':
|
||||
$task->setAction($this->_args[1]);
|
||||
break;
|
||||
|
||||
case 'rollback':
|
||||
case 'rollback':
|
||||
$task->setAction($this->_args[1]);
|
||||
$task->setRelease($this->_args[2]);
|
||||
$task->setRelease($this->_args[2]);
|
||||
break;
|
||||
}
|
||||
$task->run($config);
|
||||
}
|
||||
$task->run($config);
|
||||
break;
|
||||
|
||||
case 'update';
|
||||
@@ -165,14 +168,19 @@ class Mage_Console
|
||||
$task->run($config);
|
||||
break;
|
||||
|
||||
case 'compile';
|
||||
$task = new Mage_Task_Compile;
|
||||
$task->run($config);
|
||||
break;
|
||||
|
||||
case 'install';
|
||||
$task = new Mage_Task_Install;
|
||||
$task->run();
|
||||
break;
|
||||
|
||||
case 'upgrade';
|
||||
$task = new Mage_Task_Upgrade;
|
||||
$task->run();
|
||||
case 'upgrade';
|
||||
$task = new Mage_Task_Upgrade;
|
||||
$task->run();
|
||||
break;
|
||||
|
||||
case 'init';
|
||||
@@ -195,8 +203,8 @@ class Mage_Console
|
||||
}
|
||||
break;
|
||||
|
||||
case 'version';
|
||||
$this->showVersion();
|
||||
case 'version';
|
||||
$this->showVersion();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user