Compare commits
No commits in common. "5ec081022d3f9f236853d7f76214b0126757fde2" and "e12bf58baf15b008b79a1e930c3123361425f8a1" have entirely different histories.
5ec081022d
...
e12bf58baf
@ -24,11 +24,7 @@ class ModuleController extends ConsoleController
|
||||
|
||||
if (file_exists(ROOT_DIR . $this->argv['path'])) {
|
||||
$moduleService = new ModuleService();
|
||||
if ($moduleService->installModule($this->argv['path'])) {
|
||||
$this->out->r("Модуль установлен", 'green');
|
||||
} else {
|
||||
$this->out->r("Ошибка установки модуля", 'red');
|
||||
}
|
||||
$moduleService->installModule($this->argv['path']);
|
||||
} else {
|
||||
$this->out->r("Модуль не найден", 'red');
|
||||
}
|
||||
@ -46,7 +42,6 @@ class ModuleController extends ConsoleController
|
||||
if (file_exists(ROOT_DIR . $this->argv['path'])) {
|
||||
$moduleService = new ModuleService();
|
||||
$moduleService->uninstallModule($this->argv['path']);
|
||||
$this->out->r("Модуль удален", 'green');
|
||||
} else {
|
||||
$this->out->r("Модуль не найден", 'red');
|
||||
}
|
||||
@ -64,7 +59,6 @@ class ModuleController extends ConsoleController
|
||||
if (file_exists(ROOT_DIR . $this->argv['path'])) {
|
||||
$moduleService = new ModuleService();
|
||||
$moduleService->packModule($this->argv['path']);
|
||||
$this->out->r("Модуль заархивирован", 'green');
|
||||
} else {
|
||||
$this->out->r("Модуль не найден", 'red');
|
||||
}
|
||||
@ -80,13 +74,7 @@ class ModuleController extends ConsoleController
|
||||
}
|
||||
if (file_exists(ROOT_DIR . $this->argv['path'])) {
|
||||
$moduleService = new ModuleService();
|
||||
if ($moduleService->updateModule($this->argv['path'])) {
|
||||
$this->out->r("Модуль обновлен", 'green');
|
||||
} else {
|
||||
$this->out->r("Ошибка обновления модуля", 'red');
|
||||
}
|
||||
} else {
|
||||
$this->out->r("Модуль не найден", 'red');
|
||||
$moduleService->updateModule($this->argv['path']);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -306,6 +306,7 @@ class ModuleService
|
||||
}
|
||||
|
||||
$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
|
||||
var_dump($tmpModuleDirFull);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -348,7 +349,7 @@ class ModuleService
|
||||
if (!is_dir(RESOURCES_DIR . '/tmp/modules')) {
|
||||
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
||||
}
|
||||
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.igm');
|
||||
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.itguild');
|
||||
|
||||
$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user