public function doUpdateAction($params)
 {
     $deployer = new \Innomatic\Module\Deploy\ModuleDeployer();
     return $deployer->redeploy($this->basedir . '/core/modules/' . $params['name']);
 }
Esempio n. 2
0
            } else {
                print 'Unable to deploy module' . "\n";
                $script->cleanExit(1);
            }
            break;
        case 'redeploy':
            $deployer = new \Innomatic\Module\Deploy\ModuleDeployer();
            if ($deployer->redeploy($argv[2])) {
                print 'Module redeployed' . "\n";
            } else {
                print 'Unable to redeploy module' . "\n";
                $script->cleanExit(1);
            }
            break;
        case 'undeploy':
            $deployer = new \Innomatic\Module\Deploy\ModuleDeployer();
            if ($deployer->undeploy($argv[2])) {
                print 'Module undeployed' . "\n";
            } else {
                print 'Unable to undeploy module' . "\n";
                $script->cleanExit(1);
            }
            break;
        default:
            print 'Usage: php innomatic/core/scripts/moduledeployer.php command' . "\n";
            print 'Type moduledeployer.php -h for a list of supported commands' . "\n";
    }
} catch (\Exception $e) {
    echo $e;
}
$script->cleanExit();