]> git.ipfire.org Git - people/stevee/guardian.git/commit
Add "Config" module.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 20 Nov 2015 20:56:49 +0000 (21:56 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 20 Nov 2015 20:56:49 +0000 (21:56 +0100)
commit2aed491c227848297a9e4e7c9a38a087afab95e2
treeaa363d795b82bb7d3f4ce0162416f190f9b36309
parenta17e021e8a637d06f0758d426dc0931610e30197
Add "Config" module.

This module contains functions to read, validate and set various
configure options which are used in guardian.

The main functions called "UseConfig" allows to pass which config file
should be read and validates the input by calling a subfunction. The
validated settings will be returend as a hash.

The "CheckConfig" function directly can be called with a hash, which
contains the various config options and values and will return an
error message if there are any problems.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
modules/Config.pm [new file with mode: 0644]