1 | <?php |
||
17 | class GerrieBaseCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * Adds the --config-file / -c option to the command. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | protected function addConfigFileOption() |
||
33 | |||
34 | /** |
||
35 | * Adds several options for database connections to the command. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | protected function addDatabaseOptions() |
||
48 | |||
49 | /** |
||
50 | * Adds the SSH Key option to the command. |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | protected function addSSHKeyOption() |
||
63 | |||
64 | /** |
||
65 | * Adds the "setup-database-tables" option. |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | protected function addSetupDatabaseOption() |
||
78 | |||
79 | /** |
||
80 | * Adds the "debug" option. |
||
81 | * This option enables various debug functionalities like |
||
82 | * * Check if every data key received by Gerrit is proceeded by Gerrie |
||
83 | * * Check if an update was processed if the server is crawled the first time |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function addDebugOption() |
||
96 | |||
97 | /** |
||
98 | * Adds a argument of a possible list of instances. |
||
99 | * |
||
100 | * Format: scheme://username[:password]@host[:port]/ |
||
101 | * Examples: |
||
102 | * * ssh://[email protected]:29418/'; |
||
103 | * * https://max.mustermann:[email protected]/ |
||
104 | * |
||
105 | * @return void |
||
106 | */ |
||
107 | protected function addInstancesArgument() |
||
115 | } |