Adding Shell plugin, but with the requirement that ENABLE_SHELL_PLUGIN must be defined and true, to give sysadmins some control. Closes #45.

This commit is contained in:
Dan Cryer 2013-05-22 17:23:35 +01:00
parent 822aad753c
commit c5b20b4891

View file

@ -41,6 +41,10 @@ class Shell implements \PHPCI\Plugin
*/
public function execute()
{
if (!defined('ENABLE_SHELL_PLUGIN') || !ENABLE_SHELL_PLUGIN) {
throw new \Exception('The shell plugin is not enabled.');
}
$success = $this->phpci->executeCommand($this->command);
return $success;