-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitStatus.php
More file actions
43 lines (41 loc) · 2.52 KB
/
Copy pathGitStatus.php
File metadata and controls
43 lines (41 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
class GitStatus extends COREPOS\Fannie\API\FanniePlugin
{
public $plugin_description = 'Provides a scheduled task to check for "git status" issues in the source folder.';
public $plugin_settings = array(
'GitStatusExecutable' => array(
'label'=>'Git executable',
'description'=>"Executable to use for Git. Default of 'git' is fine in most cases. If you need something else then it should probably be an absolute path.",
'default'=>'git'),
'GitStatusFetch' => array(
'label'=>'Git fetch',
'description'=>"Whether 'git fetch' should be ran at all.",
'options' => array("Do not use 'git fetch' (check 'git status' only)" => 'false',
"Use 'git fetch' and compare local vs. remote" => 'true'),
'default'=>'false'),
'GitStatusFetchWithSudo' => array(
'label'=>'Fetch with sudo',
'description'=>"Whether 'sudo' must be used when running 'git fetch' command. Note that using sudo typically requires a corresponding entry in a 'sudoers' file, to obviate the need for password prompt.",
'options' => array("Do not use sudo (e.g.: git fetch origin)" => 'false',
"Use sudo (e.g.: sudo -u owner git fetch origin)" => 'true'),
'default'=>'false'),
'GitStatusFailEarly' => array(
'label'=>'Failure mode',
'description'=>"How failures should be handled when running checks",
'options' => array("Fail early, i.e. stop processing when first check fails" => 'true',
"Fail late, i.e. run all checks even if some fail" => 'false'),
'default'=>'false'),
'GitStatusIgnoreUntracked' => array(
'label'=>'Untracked files',
'description'=>"Whether to report, or ignore, untracked files.",
'options' => array("Ignore untracked files" => 'true',
"Report any untracked files" => 'false'),
'default'=>'false'),
'GitStatusDebug' => array(
'label'=>'Debug mode',
'description'=>"Whether to print debug messages. Note that cron will send email only when there is output. (The plugin/task does not itself directly send email.)",
'options' => array("No debug messages (means no email unless problem is found)" => 'false',
"Include debug messages (means email is always sent)" => 'true'),
'default'=>'false'),
);
}