summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-08 22:24:05 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-08 22:24:05 +0300
commit78ec9c89274273bd864089c3fb10f62319790dec (patch)
tree2795cfcdbb8c324aea9748cbacaecc85e95803d3
parent69ff9c1766ed89edf0ffdb63bf487396b6bd081b (diff)
downloadconfig-haproxy-78ec9c89274273bd864089c3fb10f62319790dec.tar.gz
config-haproxy-78ec9c89274273bd864089c3fb10f62319790dec.tar.bz2
Minor changes
-rw-r--r--MANIFEST.SKIP1
-rw-r--r--README14
2 files changed, 8 insertions, 7 deletions
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
index 3429457..c1d2412 100644
--- a/MANIFEST.SKIP
+++ b/MANIFEST.SKIP
@@ -57,6 +57,7 @@
57 57
58^debug.sh 58^debug.sh
59^tmp 59^tmp
60^\.emacs\.* 60^\.emacs\.*
61\.tar$ 61\.tar$
62\.tar\.gz$ 62\.tar\.gz$
63Config/HAProxy/VirtualHost.pm
diff --git a/README b/README
index 3330122..4e20984 100644
--- a/README
+++ b/README
@@ -4,22 +4,22 @@ Config::HAProxy
4A parser class that converts the HAProxy configuration file to a parse 4A parser class that converts the HAProxy configuration file to a parse
5tree and provides methods for various operations on this tree, such as: 5tree and provides methods for various operations on this tree, such as:
6searching, modifying and saving it to a file. 6searching, modifying and saving it to a file.
7 7
8EXAMPLE 8EXAMPLE
9 9
10 use Config::HAProxy; 10 use Config::HAProxy;
11 11
12 # Parse HAProxy configuration file 12 # Parse HAProxy configuration file
13 $cfg = Config::HAProxy->new->parse; 13 $cfg = Config::HAProxy->new->parse;
14 14
15 # Print IP addresses and ports of the configured backends 15 # Print IP addresses and ports of the configured backends
16 foreach my $srv (map { $_->select(name => 'server') } 16 foreach my $srv (map { $_->select(name => 'server') }
17 $cfg->tree->select(name => 'backend')) { 17 $cfg->tree->select(name => 'backend')) {
18 print $srv->arg(1),"\n"; 18 print $srv->arg(1),"\n";
19 } 19 }
20 20
21 21
22INSTALLATION 22INSTALLATION
23 23
24To install this module type the following: 24To install this module type the following:
25 25

Return to:

Send suggestions and report system problems to the System administrator.