/**
  * 
  * Remove module's static files
  */
 protected function removeStaticFiles()
 {
     StaticFiles::remove($this->moduleSlug);
 }
Example #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);
     }
 }