summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README46
1 files changed, 46 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..3330122
--- /dev/null
+++ b/README
@@ -0,0 +1,46 @@
1Config::HAProxy
2===============
3
4A parser class that converts the HAProxy configuration file to a parse
5tree and provides methods for various operations on this tree, such as:
6searching, modifying and saving it to a file.
7
8EXAMPLE
9
10 use Config::HAProxy;
11
12 # Parse HAProxy configuration file
13 $cfg = Config::HAProxy->new->parse;
14
15 # Print IP addresses and ports of the configured backends
16 foreach my $srv (map { $_->select(name => 'server') }
17 $cfg->tree->select(name => 'backend')) {
18 print $srv->arg(1),"\n";
19 }
20
21
22INSTALLATION
23
24To install this module type the following:
25
26 perl Makefile.PL
27 make
28 make test
29 make install
30
31COPYRIGHT AND LICENCE
32
33Copyright (C) 2018 by Sergey Poznyakoff
34
35This library is free software; you can redistribute it and/or modify it
36under the terms of the GNU General Public License as published by the
37Free Software Foundation; either version 3 of the License, or (at your
38option) any later version.
39
40It is distributed in the hope that it will be useful,
41but WITHOUT ANY WARRANTY; without even the implied warranty of
42MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43GNU General Public License for more details.
44
45You should have received a copy of the GNU General Public License along
46with this library. If not, see <http://www.gnu.org/licenses/>.

Return to:

Send suggestions and report system problems to the System administrator.