3 * scmhook commitEmail Plugin Class
4 * Copyright 2011, Franck Villaume - Capgemini
6 * This file is part of FusionForge. FusionForge is free software;
7 * you can redistribute it and/or modify it under the terms of the
8 * GNU General Public License as published by the Free Software
9 * Foundation; either version 2 of the Licence, or (at your option)
12 * FusionForge is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 require_once $gfplugins.'scmhook/common/scmhook.class.php';
25 class commitEmail extends scmhook {
26 function __construct() {
27 $this->name = "Commit Email";
28 $this->description = _('Commit is pushed to commit mailing-list of the project');
29 $this->classname = "commitEmail";
30 $this->hooktype = "post-commit";
31 $this->label = "scmsvn";
32 $this->unixname = "commitemail";
34 $this->command = '/usr/bin/php -d include_path='.ini_get('include_path').' '.forge_get_config('plugins_path').'/scmhook/library/'.
35 $this->label.'/hooks/'.$this->unixname.'/commit-email.php "$1" "$2" '.$GLOBALS['group']->getUnixName().'-commits@'.forge_get_config('lists_host');