/** * {@inheritdoc} */ public function execute() { parent::execute(); if ($this->params['views']) { $this->_clearViews(); } else { $this->_clearCache(); } }
/** * Execute all active checkers * * @return void */ public function execute() { parent::execute(); $checkers = $this->Monitoring->getActiveCheckers(); foreach ($checkers as $checker) { $result = $this->_run($checker); $this->_handleResult($checker, $result); } }
/** * Execute all active checkers * * @return void */ public function execute() { parent::execute(); $templatePath = App::pluginPath('Environment') . DS . 'Template' . DS; $scripts = Configure::read('Environment.scripts'); $status = $this->_installScripts($scripts['webroot'], $templatePath . 'webroot' . DS, WWW_ROOT); $status += $this->_installScripts($scripts['console'], $templatePath . 'Console' . DS, APP . 'Console' . DS); foreach ($status as $script => $success) { if ($success) { $this->out("{$script} <ok>installed</ok>"); } else { $this->err("{$script} <error>not installed!</error>"); } } $success = $this->_installScript("cake{$this->params['consoleHandler']}", $templatePath . 'Console' . DS, APP . 'Console' . DS, 'cake'); if ($success) { $this->out("<ok>Set default console handler to {$this->params['consoleHandler']}</ok>"); } else { $this->err("<error>Can't set default console handler!</error>"); } }
/** * Runs checker * @throws Exception */ public function execute() { parent::execute(); $this->_addNew(); $this->_removeAbsent(); }