Ejemplo n.º 1
0
 /**
  * 
  * Deploy module's static files
  */
 protected function deployStaticFiles()
 {
     StaticFiles::deploy($this->moduleSlug);
 }
Ejemplo n.º 2
0
 /**
  * 
  * @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);
     }
 }