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:
parent
822aad753c
commit
c5b20b4891
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue