/** * * Deploy module's static files */ protected function deployStaticFiles() { StaticFiles::deploy($this->moduleSlug); }
/** * * @param string $object * @param array $params * @cmdObject string module the host * @cmdParam boolean|true removeOld optional is verbose ? */ public function deployStaticAction($object, $params = null) { echo Colorize::colorizeMessage("Deployment of statics...", "info"); try { if ($params['removeOld'] == true) { StaticFiles::remove($object['module']); } StaticFiles::deploy($object['module']); echo Colorize::colorizeMessage(" Done", "success"); } catch (FilesystemException $ex) { throw new \Exception(" " . $ex->getMessage(), 1); } }