/** * Create module installer * * @param string $name in format of companyname/modulename * @param string $version - initial module version in format of 1.5.7 */ public function install($name = null, $version = null) { if ($name == null) { $name = $this->_ask('Enter the target module (like Mycompany/Mymodule)'); } if ($version == null) { $version = $this->_ask('Enter the initial module version (like 1.0.0)'); } list($companyName, $moduleName) = explode('/', $name); $module = new Mtool_Codegen_Entity_Module(getcwd(), $moduleName, $companyName, $this->_getConfig()); $module->install($version); $this->_answer('Done'); }