rhaproxy 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changelog +18 -0
- data/lib/rhaproxy/keywords.rb +139 -139
- metadata +5 -5
data/Changelog
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
commit f9ccd9edbabb7e9c4b17ee8094e7c1f38dc43dc6
|
2
|
+
Author: Joel Bryan Juliano <jjuliano@clinic-it.com>
|
3
|
+
Date: Wed Jan 5 15:53:10 2011 +0800
|
4
|
+
|
5
|
+
bump gem version 0.1.2 with new changes
|
6
|
+
|
7
|
+
commit 90acd37e5d95b4210cacaa963586a7f86e4d27e4
|
8
|
+
Author: Joel Bryan Juliano <jjuliano@clinic-it.com>
|
9
|
+
Date: Wed Jan 5 15:51:40 2011 +0800
|
10
|
+
|
11
|
+
Stop sorting the haproxy configs! stop the madness! fixed.
|
12
|
+
|
13
|
+
commit f1eeccdcd41fe2a256448bc08cdbc6e1b2969584
|
14
|
+
Author: Joel Bryan Juliano <jjuliano@clinic-it.com>
|
15
|
+
Date: Tue Jan 4 23:53:42 2011 +0800
|
16
|
+
|
17
|
+
append the changelog
|
18
|
+
|
1
19
|
commit a33c94ce4018a3122bc0c88038fb4816b0cbe9b8
|
2
20
|
Author: Joel Bryan Juliano <jjuliano@clinic-it.com>
|
3
21
|
Date: Tue Jan 4 23:53:08 2011 +0800
|
data/lib/rhaproxy/keywords.rb
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
#
|
31
31
|
def acl(params = nil)
|
32
32
|
if @name_index
|
33
|
-
@conf.insert(@name_index +
|
33
|
+
@conf.insert(@name_index + @conf.length, " " + "acl " + params.to_s + "\n")
|
34
34
|
else
|
35
35
|
puts "no #{@proxy_type} name assigned"
|
36
36
|
return false
|
@@ -197,7 +197,7 @@
|
|
197
197
|
#
|
198
198
|
def bind(params = nil)
|
199
199
|
if @name_index
|
200
|
-
@conf.insert(@name_index +
|
200
|
+
@conf.insert(@name_index + @conf.length, " " + "bind " + params.to_s + "\n")
|
201
201
|
else
|
202
202
|
puts "no #{@proxy_type} name assigned"
|
203
203
|
return false
|
@@ -227,7 +227,7 @@
|
|
227
227
|
#
|
228
228
|
def block(params = nil)
|
229
229
|
if @name_index
|
230
|
-
@conf.insert(@name_index +
|
230
|
+
@conf.insert(@name_index + @conf.length, " " + "block " + params.to_s + "\n")
|
231
231
|
else
|
232
232
|
puts "no #{@proxy_type} name assigned"
|
233
233
|
return false
|
@@ -275,7 +275,7 @@
|
|
275
275
|
#
|
276
276
|
def capture_cookie(params = nil)
|
277
277
|
if @name_index
|
278
|
-
@conf.insert(@name_index +
|
278
|
+
@conf.insert(@name_index + @conf.length, " " + "capture cookie " + params.to_s + "\n")
|
279
279
|
else
|
280
280
|
puts "no #{@proxy_type} name assigned"
|
281
281
|
return false
|
@@ -328,7 +328,7 @@
|
|
328
328
|
#
|
329
329
|
def capture_request_header(params = nil)
|
330
330
|
if @name_index
|
331
|
-
@conf.insert(@name_index +
|
331
|
+
@conf.insert(@name_index + @conf.length, " " + "capture request header " + params.to_s + "\n")
|
332
332
|
else
|
333
333
|
puts "no #{@proxy_type} name assigned"
|
334
334
|
return false
|
@@ -374,7 +374,7 @@
|
|
374
374
|
#
|
375
375
|
def capture_response_header(params = nil)
|
376
376
|
if @name_index
|
377
|
-
@conf.insert(@name_index +
|
377
|
+
@conf.insert(@name_index + @conf.length, " " + "capture response header " + params.to_s + "\n")
|
378
378
|
else
|
379
379
|
puts "no #{@proxy_type} name assigned"
|
380
380
|
return false
|
@@ -412,7 +412,7 @@
|
|
412
412
|
#
|
413
413
|
def force_persist(params = nil)
|
414
414
|
if @name_index
|
415
|
-
@conf.insert(@name_index +
|
415
|
+
@conf.insert(@name_index + @conf.length, " " + "force-persist " + params.to_s + "\n")
|
416
416
|
else
|
417
417
|
puts "no #{@proxy_type} name assigned"
|
418
418
|
return false
|
@@ -457,7 +457,7 @@
|
|
457
457
|
#
|
458
458
|
def http_request(params = nil)
|
459
459
|
if @name_index
|
460
|
-
@conf.insert(@name_index +
|
460
|
+
@conf.insert(@name_index + @conf.length, " " + "http-request " + params.to_s + "\n")
|
461
461
|
else
|
462
462
|
puts "no #{@proxy_type} name assigned"
|
463
463
|
return false
|
@@ -476,7 +476,7 @@
|
|
476
476
|
#
|
477
477
|
def persistent_id(params = nil)
|
478
478
|
if @name_index
|
479
|
-
@conf.insert(@name_index +
|
479
|
+
@conf.insert(@name_index + @conf.length, " " + "id " + params.to_s + "\n")
|
480
480
|
else
|
481
481
|
puts "no #{@proxy_type} name assigned"
|
482
482
|
return false
|
@@ -509,7 +509,7 @@
|
|
509
509
|
#
|
510
510
|
def ignore_persist(params = nil)
|
511
511
|
if @name_index
|
512
|
-
@conf.insert(@name_index +
|
512
|
+
@conf.insert(@name_index + @conf.length, " " + "ignore persist " + params.to_s + "\n")
|
513
513
|
else
|
514
514
|
puts "no #{@proxy_type} name assigned"
|
515
515
|
return false
|
@@ -554,7 +554,7 @@
|
|
554
554
|
#
|
555
555
|
def monitor_fail(params = nil)
|
556
556
|
if @name_index
|
557
|
-
@conf.insert(@name_index +
|
557
|
+
@conf.insert(@name_index + @conf.length, " " + "monitor fail " + params.to_s + "\n")
|
558
558
|
else
|
559
559
|
puts "no #{@proxy_type} name assigned"
|
560
560
|
return false
|
@@ -587,7 +587,7 @@
|
|
587
587
|
#
|
588
588
|
def option_ignore_persist(params = nil)
|
589
589
|
if @name_index
|
590
|
-
@conf.insert(@name_index +
|
590
|
+
@conf.insert(@name_index + @conf.length, " " + "option ignore-persist " + params.to_s + "\n")
|
591
591
|
else
|
592
592
|
puts "no #{@proxy_type} name assigned"
|
593
593
|
return false
|
@@ -675,7 +675,7 @@
|
|
675
675
|
#
|
676
676
|
def redirect(params = nil)
|
677
677
|
if @name_index
|
678
|
-
@conf.insert(@name_index +
|
678
|
+
@conf.insert(@name_index + @conf.length, " " + "redirect " + params.to_s + "\n")
|
679
679
|
else
|
680
680
|
puts "no #{@proxy_type} name assigned"
|
681
681
|
return false
|
@@ -711,7 +711,7 @@
|
|
711
711
|
#
|
712
712
|
def reqadd(params = nil)
|
713
713
|
if @name_index
|
714
|
-
@conf.insert(@name_index +
|
714
|
+
@conf.insert(@name_index + @conf.length, " " + "reqadd " + params.to_s + "\n")
|
715
715
|
else
|
716
716
|
puts "no #{@proxy_type} name assigned"
|
717
717
|
return false
|
@@ -755,7 +755,7 @@
|
|
755
755
|
#
|
756
756
|
def reqallow(params = nil)
|
757
757
|
if @name_index
|
758
|
-
@conf.insert(@name_index +
|
758
|
+
@conf.insert(@name_index + @conf.length, " " + "reqallow " + params.to_s + "\n")
|
759
759
|
else
|
760
760
|
puts "no #{@proxy_type} name assigned"
|
761
761
|
return false
|
@@ -764,7 +764,7 @@
|
|
764
764
|
|
765
765
|
def reqiallow(params = nil)
|
766
766
|
if @name_index
|
767
|
-
@conf.insert(@name_index +
|
767
|
+
@conf.insert(@name_index + @conf.length, " " + "reqiallow " + params.to_s + "\n")
|
768
768
|
else
|
769
769
|
puts "no #{@proxy_type} name assigned"
|
770
770
|
return false
|
@@ -807,7 +807,7 @@
|
|
807
807
|
#
|
808
808
|
def reqdel(params = nil)
|
809
809
|
if @name_index
|
810
|
-
@conf.insert(@name_index +
|
810
|
+
@conf.insert(@name_index + @conf.length, " " + "reqdel " + params.to_s + "\n")
|
811
811
|
else
|
812
812
|
puts "no #{@proxy_type} name assigned"
|
813
813
|
return false
|
@@ -816,7 +816,7 @@
|
|
816
816
|
|
817
817
|
def reqidel(params = nil)
|
818
818
|
if @name_index
|
819
|
-
@conf.insert(@name_index +
|
819
|
+
@conf.insert(@name_index + @conf.length, " " + "reqidel " + params.to_s + "\n")
|
820
820
|
else
|
821
821
|
puts "no #{@proxy_type} name assigned"
|
822
822
|
return false
|
@@ -864,7 +864,7 @@
|
|
864
864
|
#
|
865
865
|
def reqdeny(params = nil)
|
866
866
|
if @name_index
|
867
|
-
@conf.insert(@name_index +
|
867
|
+
@conf.insert(@name_index + @conf.length, " " + "reqdeny " + params.to_s + "\n")
|
868
868
|
else
|
869
869
|
puts "no #{@proxy_type} name assigned"
|
870
870
|
return false
|
@@ -873,7 +873,7 @@
|
|
873
873
|
|
874
874
|
def reqideny(params = nil)
|
875
875
|
if @name_index
|
876
|
-
@conf.insert(@name_index +
|
876
|
+
@conf.insert(@name_index + @conf.length, " " + "reqideny " + params.to_s + "\n")
|
877
877
|
else
|
878
878
|
puts "no #{@proxy_type} name assigned"
|
879
879
|
return false
|
@@ -917,7 +917,7 @@
|
|
917
917
|
#
|
918
918
|
def reqpass(params = nil)
|
919
919
|
if @name_index
|
920
|
-
@conf.insert(@name_index +
|
920
|
+
@conf.insert(@name_index + @conf.length, " " + "reqpass " + params.to_s + "\n")
|
921
921
|
else
|
922
922
|
puts "no #{@proxy_type} name assigned"
|
923
923
|
return false
|
@@ -926,7 +926,7 @@
|
|
926
926
|
|
927
927
|
def reqipass(params = nil)
|
928
928
|
if @name_index
|
929
|
-
@conf.insert(@name_index +
|
929
|
+
@conf.insert(@name_index + @conf.length, " " + "reqipass " + params.to_s + "\n")
|
930
930
|
else
|
931
931
|
puts "no #{@proxy_type} name assigned"
|
932
932
|
return false
|
@@ -977,7 +977,7 @@
|
|
977
977
|
#
|
978
978
|
def reqrep(params = nil)
|
979
979
|
if @name_index
|
980
|
-
@conf.insert(@name_index +
|
980
|
+
@conf.insert(@name_index + @conf.length, " " + "reqrep " + params.to_s + "\n")
|
981
981
|
else
|
982
982
|
puts "no #{@proxy_type} name assigned"
|
983
983
|
return false
|
@@ -986,7 +986,7 @@
|
|
986
986
|
|
987
987
|
def reqirep(params = nil)
|
988
988
|
if @name_index
|
989
|
-
@conf.insert(@name_index +
|
989
|
+
@conf.insert(@name_index + @conf.length, " " + "reqirep " + params.to_s + "\n")
|
990
990
|
else
|
991
991
|
puts "no #{@proxy_type} name assigned"
|
992
992
|
return false
|
@@ -1040,7 +1040,7 @@
|
|
1040
1040
|
#
|
1041
1041
|
def reqtarpit(params = nil)
|
1042
1042
|
if @name_index
|
1043
|
-
@conf.insert(@name_index +
|
1043
|
+
@conf.insert(@name_index + @conf.length, " " + "reqtarpit " + params.to_s + "\n")
|
1044
1044
|
else
|
1045
1045
|
puts "no #{@proxy_type} name assigned"
|
1046
1046
|
return false
|
@@ -1049,7 +1049,7 @@
|
|
1049
1049
|
|
1050
1050
|
def reqitarpit(params = nil)
|
1051
1051
|
if @name_index
|
1052
|
-
@conf.insert(@name_index +
|
1052
|
+
@conf.insert(@name_index + @conf.length, " " + "reqitarpit " + params.to_s + "\n")
|
1053
1053
|
else
|
1054
1054
|
puts "no #{@proxy_type} name assigned"
|
1055
1055
|
return false
|
@@ -1081,7 +1081,7 @@
|
|
1081
1081
|
#
|
1082
1082
|
def rspadd(params = nil)
|
1083
1083
|
if @name_index
|
1084
|
-
@conf.insert(@name_index +
|
1084
|
+
@conf.insert(@name_index + @conf.length, " " + "rspadd " + params.to_s + "\n")
|
1085
1085
|
else
|
1086
1086
|
puts "no #{@proxy_type} name assigned"
|
1087
1087
|
return false
|
@@ -1124,7 +1124,7 @@
|
|
1124
1124
|
#
|
1125
1125
|
def rspdel(params = nil)
|
1126
1126
|
if @name_index
|
1127
|
-
@conf.insert(@name_index +
|
1127
|
+
@conf.insert(@name_index + @conf.length, " " + "rspdel " + params.to_s + "\n")
|
1128
1128
|
else
|
1129
1129
|
puts "no #{@proxy_type} name assigned"
|
1130
1130
|
return false
|
@@ -1133,7 +1133,7 @@
|
|
1133
1133
|
|
1134
1134
|
def rspidel(params = nil)
|
1135
1135
|
if @name_index
|
1136
|
-
@conf.insert(@name_index +
|
1136
|
+
@conf.insert(@name_index + @conf.length, " " + "rspidel " + params.to_s + "\n")
|
1137
1137
|
else
|
1138
1138
|
puts "no #{@proxy_type} name assigned"
|
1139
1139
|
return false
|
@@ -1180,7 +1180,7 @@
|
|
1180
1180
|
#
|
1181
1181
|
def rspdeny(params = nil)
|
1182
1182
|
if @name_index
|
1183
|
-
@conf.insert(@name_index +
|
1183
|
+
@conf.insert(@name_index + @conf.length, " " + "rspdeny " + params.to_s + "\n")
|
1184
1184
|
else
|
1185
1185
|
puts "no #{@proxy_type} name assigned"
|
1186
1186
|
return false
|
@@ -1189,7 +1189,7 @@
|
|
1189
1189
|
|
1190
1190
|
def rspideny(params = nil)
|
1191
1191
|
if @name_index
|
1192
|
-
@conf.insert(@name_index +
|
1192
|
+
@conf.insert(@name_index + @conf.length, " " + "rspideny " + params.to_s + "\n")
|
1193
1193
|
else
|
1194
1194
|
puts "no #{@proxy_type} name assigned"
|
1195
1195
|
return false
|
@@ -1239,7 +1239,7 @@
|
|
1239
1239
|
#
|
1240
1240
|
def rspirep(params = nil)
|
1241
1241
|
if @name_index
|
1242
|
-
@conf.insert(@name_index +
|
1242
|
+
@conf.insert(@name_index + @conf.length, " " + "rspirep " + params.to_s + "\n")
|
1243
1243
|
else
|
1244
1244
|
puts "no #{@proxy_type} name assigned"
|
1245
1245
|
return false
|
@@ -1248,7 +1248,7 @@
|
|
1248
1248
|
|
1249
1249
|
def rsprep(params = nil)
|
1250
1250
|
if @name_index
|
1251
|
-
@conf.insert(@name_index +
|
1251
|
+
@conf.insert(@name_index + @conf.length, " " + "rsprep " + params.to_s + "\n")
|
1252
1252
|
else
|
1253
1253
|
puts "no #{@proxy_type} name assigned"
|
1254
1254
|
return false
|
@@ -1358,7 +1358,7 @@
|
|
1358
1358
|
#
|
1359
1359
|
def tcp_request_connection(params = nil)
|
1360
1360
|
if @name_index
|
1361
|
-
@conf.insert(@name_index +
|
1361
|
+
@conf.insert(@name_index + @conf.length, " " + "tcp-request connection " + params.to_s + "\n")
|
1362
1362
|
else
|
1363
1363
|
puts "no #{@proxy_type} name assigned"
|
1364
1364
|
return false
|
@@ -1470,7 +1470,7 @@
|
|
1470
1470
|
#
|
1471
1471
|
def tcp_request_content(params = nil)
|
1472
1472
|
if @name_index
|
1473
|
-
@conf.insert(@name_index +
|
1473
|
+
@conf.insert(@name_index + @conf.length, " " + "tcp-request content " + params.to_s + "\n")
|
1474
1474
|
else
|
1475
1475
|
puts "no #{@proxy_type} name assigned"
|
1476
1476
|
return false
|
@@ -1526,7 +1526,7 @@
|
|
1526
1526
|
#
|
1527
1527
|
def tcp_request_inspect_delay(params = nil)
|
1528
1528
|
if @name_index
|
1529
|
-
@conf.insert(@name_index +
|
1529
|
+
@conf.insert(@name_index + @conf.length, " " + "tcp-request inspect-delay " + params.to_s + "\n")
|
1530
1530
|
else
|
1531
1531
|
puts "no #{@proxy_type} name assigned"
|
1532
1532
|
return false
|
@@ -1573,7 +1573,7 @@
|
|
1573
1573
|
#
|
1574
1574
|
def use_backend(params = nil)
|
1575
1575
|
if @name_index
|
1576
|
-
@conf.insert(@name_index +
|
1576
|
+
@conf.insert(@name_index + @conf.length, " " + "use_backend " + params.to_s + "\n")
|
1577
1577
|
else
|
1578
1578
|
puts "no #{@proxy_type} name assigned"
|
1579
1579
|
return false
|
@@ -1590,7 +1590,7 @@
|
|
1590
1590
|
#
|
1591
1591
|
def description(params = nil)
|
1592
1592
|
if @name_index
|
1593
|
-
@conf.insert(@name_index +
|
1593
|
+
@conf.insert(@name_index + @conf.length, " " + "description " + params.to_s + "\n")
|
1594
1594
|
else
|
1595
1595
|
puts "no #{@proxy_type} name assigned"
|
1596
1596
|
return false
|
@@ -1624,7 +1624,7 @@
|
|
1624
1624
|
#
|
1625
1625
|
def backlog(params = nil)
|
1626
1626
|
if @name_index
|
1627
|
-
@conf.insert(@name_index +
|
1627
|
+
@conf.insert(@name_index + @conf.length, " " + "backlog " + params.to_s + "\n")
|
1628
1628
|
else
|
1629
1629
|
puts "no #{@proxy_type} name assigned"
|
1630
1630
|
return false
|
@@ -1684,7 +1684,7 @@
|
|
1684
1684
|
#
|
1685
1685
|
def bind_process(params = nil)
|
1686
1686
|
if @name_index
|
1687
|
-
@conf.insert(@name_index +
|
1687
|
+
@conf.insert(@name_index + @conf.length, " " + "bind-process " + params.to_s + "\n")
|
1688
1688
|
else
|
1689
1689
|
puts "no #{@proxy_type} name assigned"
|
1690
1690
|
return false
|
@@ -1714,7 +1714,7 @@
|
|
1714
1714
|
#
|
1715
1715
|
def default_backend(params = nil)
|
1716
1716
|
if @name_index
|
1717
|
-
@conf.insert(@name_index +
|
1717
|
+
@conf.insert(@name_index + @conf.length, " " + "default_backend " + params.to_s + "\n")
|
1718
1718
|
else
|
1719
1719
|
puts "no #{@proxy_type} name assigned"
|
1720
1720
|
return false
|
@@ -1740,7 +1740,7 @@
|
|
1740
1740
|
#
|
1741
1741
|
def disabled
|
1742
1742
|
if @name_index
|
1743
|
-
@conf.insert(@name_index +
|
1743
|
+
@conf.insert(@name_index + @conf.length, " " + "disabled " + "\n")
|
1744
1744
|
else
|
1745
1745
|
puts "no #{@proxy_type} name assigned"
|
1746
1746
|
return false
|
@@ -1761,7 +1761,7 @@
|
|
1761
1761
|
#
|
1762
1762
|
def enabled
|
1763
1763
|
if @name_index
|
1764
|
-
@conf.insert(@name_index +
|
1764
|
+
@conf.insert(@name_index + @conf.length, " " + "enabled " + "\n")
|
1765
1765
|
else
|
1766
1766
|
puts "no #{@proxy_type} name assigned"
|
1767
1767
|
return false
|
@@ -1814,7 +1814,7 @@
|
|
1814
1814
|
#
|
1815
1815
|
def errorfile(params = nil)
|
1816
1816
|
if @name_index
|
1817
|
-
@conf.insert(@name_index +
|
1817
|
+
@conf.insert(@name_index + @conf.length, " " + "errorfile " + params.to_s + "\n")
|
1818
1818
|
else
|
1819
1819
|
puts "no #{@proxy_type} name assigned"
|
1820
1820
|
return false
|
@@ -1852,7 +1852,7 @@
|
|
1852
1852
|
#
|
1853
1853
|
def errorloc(params = nil)
|
1854
1854
|
if @name_index
|
1855
|
-
@conf.insert(@name_index +
|
1855
|
+
@conf.insert(@name_index + @conf.length, " " + "errorloc " + params.to_s + "\n")
|
1856
1856
|
else
|
1857
1857
|
puts "no #{@proxy_type} name assigned"
|
1858
1858
|
return false
|
@@ -1890,7 +1890,7 @@
|
|
1890
1890
|
#
|
1891
1891
|
def errorloc302(params = nil)
|
1892
1892
|
if @name_index
|
1893
|
-
@conf.insert(@name_index +
|
1893
|
+
@conf.insert(@name_index + @conf.length, " " + "errorloc302 " + params.to_s + "\n")
|
1894
1894
|
else
|
1895
1895
|
puts "no #{@proxy_type} name assigned"
|
1896
1896
|
return false
|
@@ -1926,7 +1926,7 @@
|
|
1926
1926
|
#
|
1927
1927
|
def errorloc303(params = nil)
|
1928
1928
|
if @name_index
|
1929
|
-
@conf.insert(@name_index +
|
1929
|
+
@conf.insert(@name_index + @conf.length, " " + "errorloc303 " + params.to_s + "\n")
|
1930
1930
|
else
|
1931
1931
|
puts "no #{@proxy_type} name assigned"
|
1932
1932
|
return false
|
@@ -1954,7 +1954,7 @@
|
|
1954
1954
|
#
|
1955
1955
|
def grace(params = nil)
|
1956
1956
|
if @name_index
|
1957
|
-
@conf.insert(@name_index +
|
1957
|
+
@conf.insert(@name_index + @conf.length, " " + "grace " + params.to_s + "\n")
|
1958
1958
|
else
|
1959
1959
|
puts "no #{@proxy_type} name assigned"
|
1960
1960
|
return false
|
@@ -2027,7 +2027,7 @@
|
|
2027
2027
|
#
|
2028
2028
|
def log(params = nil)
|
2029
2029
|
if @name_index
|
2030
|
-
@conf.insert(@name_index +
|
2030
|
+
@conf.insert(@name_index + @conf.length, " " + "log " + params.to_s + "\n")
|
2031
2031
|
else
|
2032
2032
|
puts "no #{@proxy_type} name assigned"
|
2033
2033
|
return false
|
@@ -2062,7 +2062,7 @@
|
|
2062
2062
|
#
|
2063
2063
|
def maxconn(params = nil)
|
2064
2064
|
if @name_index
|
2065
|
-
@conf.insert(@name_index +
|
2065
|
+
@conf.insert(@name_index + @conf.length, " " + "maxconn " + params.to_s + "\n")
|
2066
2066
|
else
|
2067
2067
|
puts "no #{@proxy_type} name assigned"
|
2068
2068
|
return false
|
@@ -2105,7 +2105,7 @@
|
|
2105
2105
|
#
|
2106
2106
|
def mode(params = nil)
|
2107
2107
|
if @name_index
|
2108
|
-
@conf.insert(@name_index +
|
2108
|
+
@conf.insert(@name_index + @conf.length, " " + "mode " + params.to_s + "\n")
|
2109
2109
|
else
|
2110
2110
|
puts "no #{@proxy_type} name assigned"
|
2111
2111
|
return false
|
@@ -2152,7 +2152,7 @@
|
|
2152
2152
|
#
|
2153
2153
|
def monitor_net(params = nil)
|
2154
2154
|
if @name_index
|
2155
|
-
@conf.insert(@name_index +
|
2155
|
+
@conf.insert(@name_index + @conf.length, " " + "monitor-net " + params.to_s + "\n")
|
2156
2156
|
else
|
2157
2157
|
puts "no #{@proxy_type} name assigned"
|
2158
2158
|
return false
|
@@ -2194,7 +2194,7 @@
|
|
2194
2194
|
#
|
2195
2195
|
def monitor_uri(params = nil)
|
2196
2196
|
if @name_index
|
2197
|
-
@conf.insert(@name_index +
|
2197
|
+
@conf.insert(@name_index + @conf.length, " " + "monitor-uri " + params.to_s + "\n")
|
2198
2198
|
else
|
2199
2199
|
puts "no #{@proxy_type} name assigned"
|
2200
2200
|
return false
|
@@ -2236,7 +2236,7 @@
|
|
2236
2236
|
#
|
2237
2237
|
def option_accept_invalid_http_request
|
2238
2238
|
if @name_index
|
2239
|
-
@conf.insert(@name_index +
|
2239
|
+
@conf.insert(@name_index + @conf.length, " " + "option accept-invalid-http-request " + "\n")
|
2240
2240
|
else
|
2241
2241
|
puts "no #{@proxy_type} name assigned"
|
2242
2242
|
return false
|
@@ -2280,7 +2280,7 @@
|
|
2280
2280
|
#
|
2281
2281
|
def option_clitcpka
|
2282
2282
|
if @name_index
|
2283
|
-
@conf.insert(@name_index +
|
2283
|
+
@conf.insert(@name_index + @conf.length, " " + "option clitcpka " + "\n")
|
2284
2284
|
else
|
2285
2285
|
puts "no #{@proxy_type} name assigned"
|
2286
2286
|
return false
|
@@ -2304,7 +2304,7 @@
|
|
2304
2304
|
#
|
2305
2305
|
def option_contstats
|
2306
2306
|
if @name_index
|
2307
|
-
@conf.insert(@name_index +
|
2307
|
+
@conf.insert(@name_index + @conf.length, " " + "option contstats " + "\n")
|
2308
2308
|
else
|
2309
2309
|
puts "no #{@proxy_type} name assigned"
|
2310
2310
|
return false
|
@@ -2336,7 +2336,7 @@
|
|
2336
2336
|
#
|
2337
2337
|
def option_dontlog_normal
|
2338
2338
|
if @name_index
|
2339
|
-
@conf.insert(@name_index +
|
2339
|
+
@conf.insert(@name_index + @conf.length, " " + "option dontlog-normal " + "\n")
|
2340
2340
|
else
|
2341
2341
|
puts "no #{@proxy_type} name assigned"
|
2342
2342
|
return false
|
@@ -2370,7 +2370,7 @@
|
|
2370
2370
|
#
|
2371
2371
|
def option_dontlognull
|
2372
2372
|
if @name_index
|
2373
|
-
@conf.insert(@name_index +
|
2373
|
+
@conf.insert(@name_index + @conf.length, " " + "option dontlognull " + "\n")
|
2374
2374
|
else
|
2375
2375
|
puts "no #{@proxy_type} name assigned"
|
2376
2376
|
return false
|
@@ -2409,7 +2409,7 @@
|
|
2409
2409
|
#
|
2410
2410
|
def option_forceclose
|
2411
2411
|
if @name_index
|
2412
|
-
@conf.insert(@name_index +
|
2412
|
+
@conf.insert(@name_index + @conf.length, " " + "option forceclose " + "\n")
|
2413
2413
|
else
|
2414
2414
|
puts "no #{@proxy_type} name assigned"
|
2415
2415
|
return false
|
@@ -2478,7 +2478,7 @@
|
|
2478
2478
|
#
|
2479
2479
|
def option_forwardfor(params = nil)
|
2480
2480
|
if @name_index
|
2481
|
-
@conf.insert(@name_index +
|
2481
|
+
@conf.insert(@name_index + @conf.length, " " + "option forwardfor " + params.to_s + "\n")
|
2482
2482
|
else
|
2483
2483
|
puts "no #{@proxy_type} name assigned"
|
2484
2484
|
return false
|
@@ -2530,7 +2530,7 @@
|
|
2530
2530
|
#
|
2531
2531
|
def option_http_pretend_keepalive
|
2532
2532
|
if @name_index
|
2533
|
-
@conf.insert(@name_index +
|
2533
|
+
@conf.insert(@name_index + @conf.length, " " + "option http-pretend-keepalive " + "\n")
|
2534
2534
|
else
|
2535
2535
|
puts "no #{@proxy_type} name assigned"
|
2536
2536
|
return false
|
@@ -2579,7 +2579,7 @@
|
|
2579
2579
|
#
|
2580
2580
|
def option_http_server_close
|
2581
2581
|
if @name_index
|
2582
|
-
@conf.insert(@name_index +
|
2582
|
+
@conf.insert(@name_index + @conf.length, " " + "option http-server-close " + "\n")
|
2583
2583
|
else
|
2584
2584
|
puts "no #{@proxy_type} name assigned"
|
2585
2585
|
return false
|
@@ -2622,7 +2622,7 @@
|
|
2622
2622
|
#
|
2623
2623
|
def option_http_use_proxy_header
|
2624
2624
|
if @name_index
|
2625
|
-
@conf.insert(@name_index +
|
2625
|
+
@conf.insert(@name_index + @conf.length, " " + "option http-use-proxy-header " + "\n")
|
2626
2626
|
else
|
2627
2627
|
puts "no #{@proxy_type} name assigned"
|
2628
2628
|
return false
|
@@ -2667,7 +2667,7 @@
|
|
2667
2667
|
#
|
2668
2668
|
def option_httpclose
|
2669
2669
|
if @name_index
|
2670
|
-
@conf.insert(@name_index +
|
2670
|
+
@conf.insert(@name_index + @conf.length, " " + "option httpclose " + "\n")
|
2671
2671
|
else
|
2672
2672
|
puts "no #{@proxy_type} name assigned"
|
2673
2673
|
return false
|
@@ -2705,7 +2705,7 @@
|
|
2705
2705
|
#
|
2706
2706
|
def option_httplog
|
2707
2707
|
if @name_index
|
2708
|
-
@conf.insert(@name_index +
|
2708
|
+
@conf.insert(@name_index + @conf.length, " " + "option httplog " + "\n")
|
2709
2709
|
else
|
2710
2710
|
puts "no #{@proxy_type} name assigned"
|
2711
2711
|
return false
|
@@ -2746,7 +2746,7 @@
|
|
2746
2746
|
#
|
2747
2747
|
def option_http_proxy
|
2748
2748
|
if @name_index
|
2749
|
-
@conf.insert(@name_index +
|
2749
|
+
@conf.insert(@name_index + @conf.length, " " + "option http_proxy " + "\n")
|
2750
2750
|
else
|
2751
2751
|
puts "no #{@proxy_type} name assigned"
|
2752
2752
|
return false
|
@@ -2788,7 +2788,7 @@
|
|
2788
2788
|
#
|
2789
2789
|
def option_independant_streams
|
2790
2790
|
if @name_index
|
2791
|
-
@conf.insert(@name_index +
|
2791
|
+
@conf.insert(@name_index + @conf.length, " " + "option independant-streams " + "\n")
|
2792
2792
|
else
|
2793
2793
|
puts "no #{@proxy_type} name assigned"
|
2794
2794
|
return false
|
@@ -2820,7 +2820,7 @@
|
|
2820
2820
|
#
|
2821
2821
|
def option_log_separate_errors
|
2822
2822
|
if @name_index
|
2823
|
-
@conf.insert(@name_index +
|
2823
|
+
@conf.insert(@name_index + @conf.length, " " + "option log-separate-errors " + "\n")
|
2824
2824
|
else
|
2825
2825
|
puts "no #{@proxy_type} name assigned"
|
2826
2826
|
return false
|
@@ -2863,7 +2863,7 @@
|
|
2863
2863
|
#
|
2864
2864
|
def option_logasap
|
2865
2865
|
if @name_index
|
2866
|
-
@conf.insert(@name_index +
|
2866
|
+
@conf.insert(@name_index + @conf.length, " " + "option logasap " + "\n")
|
2867
2867
|
else
|
2868
2868
|
puts "no #{@proxy_type} name assigned"
|
2869
2869
|
return false
|
@@ -2904,7 +2904,7 @@
|
|
2904
2904
|
#
|
2905
2905
|
def option_nolinger
|
2906
2906
|
if @name_index
|
2907
|
-
@conf.insert(@name_index +
|
2907
|
+
@conf.insert(@name_index + @conf.length, " " + "option nolinger " + "\n")
|
2908
2908
|
else
|
2909
2909
|
puts "no #{@proxy_type} name assigned"
|
2910
2910
|
return false
|
@@ -2972,7 +2972,7 @@
|
|
2972
2972
|
#
|
2973
2973
|
def option_originalto(params = nil)
|
2974
2974
|
if @name_index
|
2975
|
-
@conf.insert(@name_index +
|
2975
|
+
@conf.insert(@name_index + @conf.length, " " + "option originalto " + params.to_s + "\n")
|
2976
2976
|
else
|
2977
2977
|
puts "no #{@proxy_type} name assigned"
|
2978
2978
|
return false
|
@@ -2991,7 +2991,7 @@
|
|
2991
2991
|
#
|
2992
2992
|
def option_socket_stats
|
2993
2993
|
if @name_index
|
2994
|
-
@conf.insert(@name_index +
|
2994
|
+
@conf.insert(@name_index + @conf.length, " " + "option socket-stats " + "\n")
|
2995
2995
|
else
|
2996
2996
|
puts "no #{@proxy_type} name assigned"
|
2997
2997
|
return false
|
@@ -3038,7 +3038,7 @@
|
|
3038
3038
|
#
|
3039
3039
|
def option_splice_auto
|
3040
3040
|
if @name_index
|
3041
|
-
@conf.insert(@name_index +
|
3041
|
+
@conf.insert(@name_index + @conf.length, " " + "option splice-auto " + "\n")
|
3042
3042
|
else
|
3043
3043
|
puts "no #{@proxy_type} name assigned"
|
3044
3044
|
return false
|
@@ -3073,7 +3073,7 @@
|
|
3073
3073
|
#
|
3074
3074
|
def option_splice_request
|
3075
3075
|
if @name_index
|
3076
|
-
@conf.insert(@name_index +
|
3076
|
+
@conf.insert(@name_index + @conf.length, " " + "option splice-request " + "\n")
|
3077
3077
|
else
|
3078
3078
|
puts "no #{@proxy_type} name assigned"
|
3079
3079
|
return false
|
@@ -3108,7 +3108,7 @@
|
|
3108
3108
|
#
|
3109
3109
|
def option_splice_response
|
3110
3110
|
if @name_index
|
3111
|
-
@conf.insert(@name_index +
|
3111
|
+
@conf.insert(@name_index + @conf.length, " " + "option splice-response " + "\n")
|
3112
3112
|
else
|
3113
3113
|
puts "no #{@proxy_type} name assigned"
|
3114
3114
|
return false
|
@@ -3152,7 +3152,7 @@
|
|
3152
3152
|
#
|
3153
3153
|
def option_tcp_smart_accept
|
3154
3154
|
if @name_index
|
3155
|
-
@conf.insert(@name_index +
|
3155
|
+
@conf.insert(@name_index + @conf.length, " " + "option tcp-smart-accept " + "\n")
|
3156
3156
|
else
|
3157
3157
|
puts "no #{@proxy_type} name assigned"
|
3158
3158
|
return false
|
@@ -3197,7 +3197,7 @@
|
|
3197
3197
|
#
|
3198
3198
|
def option_tcpka
|
3199
3199
|
if @name_index
|
3200
|
-
@conf.insert(@name_index +
|
3200
|
+
@conf.insert(@name_index + @conf.length, " " + "option tcpka " + "\n")
|
3201
3201
|
else
|
3202
3202
|
puts "no #{@proxy_type} name assigned"
|
3203
3203
|
return false
|
@@ -3226,7 +3226,7 @@
|
|
3226
3226
|
#
|
3227
3227
|
def option_tcplog
|
3228
3228
|
if @name_index
|
3229
|
-
@conf.insert(@name_index +
|
3229
|
+
@conf.insert(@name_index + @conf.length, " " + "option tcplog " + "\n")
|
3230
3230
|
else
|
3231
3231
|
puts "no #{@proxy_type} name assigned"
|
3232
3232
|
return false
|
@@ -3268,7 +3268,7 @@
|
|
3268
3268
|
#
|
3269
3269
|
def rate_limit_sessions(params = nil)
|
3270
3270
|
if @name_index
|
3271
|
-
@conf.insert(@name_index +
|
3271
|
+
@conf.insert(@name_index + @conf.length, " " + "rate-limit sessions " + params.to_s + "\n")
|
3272
3272
|
else
|
3273
3273
|
puts "no #{@proxy_type} name assigned"
|
3274
3274
|
return false
|
@@ -3313,7 +3313,7 @@
|
|
3313
3313
|
#
|
3314
3314
|
def timeout_client(params = nil)
|
3315
3315
|
if @name_index
|
3316
|
-
@conf.insert(@name_index +
|
3316
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout client " + params.to_s + "\n")
|
3317
3317
|
else
|
3318
3318
|
puts "no #{@proxy_type} name assigned"
|
3319
3319
|
return false
|
@@ -3363,7 +3363,7 @@
|
|
3363
3363
|
#
|
3364
3364
|
def timeout_http_keep_alive(params = nil)
|
3365
3365
|
if @name_index
|
3366
|
-
@conf.insert(@name_index +
|
3366
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout http-keep-alive " + params.to_s + "\n")
|
3367
3367
|
else
|
3368
3368
|
puts "no #{@proxy_type} name assigned"
|
3369
3369
|
return false
|
@@ -3409,7 +3409,7 @@
|
|
3409
3409
|
#
|
3410
3410
|
def timeout_http_request(params = nil)
|
3411
3411
|
if @name_index
|
3412
|
-
@conf.insert(@name_index +
|
3412
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout http-request " + params.to_s + "\n")
|
3413
3413
|
else
|
3414
3414
|
puts "no #{@proxy_type} name assigned"
|
3415
3415
|
return false
|
@@ -3440,7 +3440,7 @@
|
|
3440
3440
|
#
|
3441
3441
|
def timeout_tarpit(params = nil)
|
3442
3442
|
if @name_index
|
3443
|
-
@conf.insert(@name_index +
|
3443
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout tarpit " + params.to_s + "\n")
|
3444
3444
|
else
|
3445
3445
|
puts "no #{@proxy_type} name assigned"
|
3446
3446
|
return false
|
@@ -3449,7 +3449,7 @@
|
|
3449
3449
|
|
3450
3450
|
def reqisetbe(params = nil)
|
3451
3451
|
if @name_index
|
3452
|
-
@conf.insert(@name_index +
|
3452
|
+
@conf.insert(@name_index + @conf.length, " " + "reqisetbe " + params.to_s + "\n")
|
3453
3453
|
else
|
3454
3454
|
puts "no #{@proxy_type} name assigned"
|
3455
3455
|
return false
|
@@ -3458,7 +3458,7 @@
|
|
3458
3458
|
|
3459
3459
|
def reqsetbe(params = nil)
|
3460
3460
|
if @name_index
|
3461
|
-
@conf.insert(@name_index +
|
3461
|
+
@conf.insert(@name_index + @conf.length, " " + "reqsetbe " + params.to_s + "\n")
|
3462
3462
|
else
|
3463
3463
|
puts "no #{@proxy_type} name assigned"
|
3464
3464
|
return false
|
@@ -3531,7 +3531,7 @@
|
|
3531
3531
|
#
|
3532
3532
|
def appsession(params = nil)
|
3533
3533
|
if @name_index
|
3534
|
-
@conf.insert(@name_index +
|
3534
|
+
@conf.insert(@name_index + @conf.length, " " + "appsession " + params.to_s + "\n")
|
3535
3535
|
else
|
3536
3536
|
puts "no #{@proxy_type} name assigned"
|
3537
3537
|
return false
|
@@ -3563,7 +3563,7 @@
|
|
3563
3563
|
#
|
3564
3564
|
def dispatch(params = nil)
|
3565
3565
|
if @name_index
|
3566
|
-
@conf.insert(@name_index +
|
3566
|
+
@conf.insert(@name_index + @conf.length, " " + "dispatch " + params.to_s + "\n")
|
3567
3567
|
else
|
3568
3568
|
puts "no #{@proxy_type} name assigned"
|
3569
3569
|
return false
|
@@ -3654,7 +3654,7 @@
|
|
3654
3654
|
#
|
3655
3655
|
def http_check_expect(params = nil)
|
3656
3656
|
if @name_index
|
3657
|
-
@conf.insert(@name_index +
|
3657
|
+
@conf.insert(@name_index + @conf.length, " " + "http-check expect " + params.to_s + "\n")
|
3658
3658
|
else
|
3659
3659
|
puts "no #{@proxy_type} name assigned"
|
3660
3660
|
return false
|
@@ -3687,7 +3687,7 @@
|
|
3687
3687
|
#
|
3688
3688
|
def option_ignore_persist(params = nil)
|
3689
3689
|
if @name_index
|
3690
|
-
@conf.insert(@name_index +
|
3690
|
+
@conf.insert(@name_index + @conf.length, " " + "option ignore-persist " + params.to_s + "\n")
|
3691
3691
|
else
|
3692
3692
|
puts "no #{@proxy_type} name assigned"
|
3693
3693
|
return false
|
@@ -3732,7 +3732,7 @@
|
|
3732
3732
|
#
|
3733
3733
|
def server(params = nil)
|
3734
3734
|
if @name_index
|
3735
|
-
@conf.insert(@name_index +
|
3735
|
+
@conf.insert(@name_index + @conf.length, " " + "server " + params.to_s + "\n")
|
3736
3736
|
else
|
3737
3737
|
puts "no #{@proxy_type} name assigned"
|
3738
3738
|
return false
|
@@ -3762,7 +3762,7 @@
|
|
3762
3762
|
#
|
3763
3763
|
def stats_http_request(params = nil)
|
3764
3764
|
if @name_index
|
3765
|
-
@conf.insert(@name_index +
|
3765
|
+
@conf.insert(@name_index + @conf.length, " " + "stats http-request " + params.to_s + "\n")
|
3766
3766
|
else
|
3767
3767
|
puts "no #{@proxy_type} name assigned"
|
3768
3768
|
return false
|
@@ -3842,7 +3842,7 @@
|
|
3842
3842
|
#
|
3843
3843
|
def stick_match(params = nil)
|
3844
3844
|
if @name_index
|
3845
|
-
@conf.insert(@name_index +
|
3845
|
+
@conf.insert(@name_index + @conf.length, " " + "stick match " + params.to_s + "\n")
|
3846
3846
|
else
|
3847
3847
|
puts "no #{@proxy_type} name assigned"
|
3848
3848
|
return false
|
@@ -3891,7 +3891,7 @@
|
|
3891
3891
|
#
|
3892
3892
|
def stick_on(params = nil)
|
3893
3893
|
if @name_index
|
3894
|
-
@conf.insert(@name_index +
|
3894
|
+
@conf.insert(@name_index + @conf.length, " " + "stick on " + params.to_s + "\n")
|
3895
3895
|
else
|
3896
3896
|
puts "no #{@proxy_type} name assigned"
|
3897
3897
|
return false
|
@@ -3980,7 +3980,7 @@
|
|
3980
3980
|
#
|
3981
3981
|
def stick_store_request(params = nil)
|
3982
3982
|
if @name_index
|
3983
|
-
@conf.insert(@name_index +
|
3983
|
+
@conf.insert(@name_index + @conf.length, " " + "stick store-request " + params.to_s + "\n")
|
3984
3984
|
else
|
3985
3985
|
puts "no #{@proxy_type} name assigned"
|
3986
3986
|
return false
|
@@ -4198,7 +4198,7 @@
|
|
4198
4198
|
#
|
4199
4199
|
def stick_table(params = nil)
|
4200
4200
|
if @name_index
|
4201
|
-
@conf.insert(@name_index +
|
4201
|
+
@conf.insert(@name_index + @conf.length, " " + "stick table " + params.to_s + "\n")
|
4202
4202
|
else
|
4203
4203
|
puts "no #{@proxy_type} name assigned"
|
4204
4204
|
return false
|
@@ -4295,7 +4295,7 @@
|
|
4295
4295
|
#
|
4296
4296
|
def stick_store_response(params = nil)
|
4297
4297
|
if @name_index
|
4298
|
-
@conf.insert(@name_index +
|
4298
|
+
@conf.insert(@name_index + @conf.length, " " + "stick store-response " + params.to_s + "\n")
|
4299
4299
|
else
|
4300
4300
|
puts "no #{@proxy_type} name assigned"
|
4301
4301
|
return false
|
@@ -4354,7 +4354,7 @@
|
|
4354
4354
|
#
|
4355
4355
|
def tcp_response_content(params = nil)
|
4356
4356
|
if @name_index
|
4357
|
-
@conf.insert(@name_index +
|
4357
|
+
@conf.insert(@name_index + @conf.length, " " + "tcp-response content " + params.to_s + "\n")
|
4358
4358
|
else
|
4359
4359
|
puts "no #{@proxy_type} name assigned"
|
4360
4360
|
return false
|
@@ -4375,7 +4375,7 @@
|
|
4375
4375
|
#
|
4376
4376
|
def tcp_response_inspect_delay(params = nil)
|
4377
4377
|
if @name_index
|
4378
|
-
@conf.insert(@name_index +
|
4378
|
+
@conf.insert(@name_index + @conf.length, " " + "tcp-response inspect-delay " + params.to_s + "\n")
|
4379
4379
|
else
|
4380
4380
|
puts "no #{@proxy_type} name assigned"
|
4381
4381
|
return false
|
@@ -4435,7 +4435,7 @@
|
|
4435
4435
|
#
|
4436
4436
|
def stats_admin(params = nil)
|
4437
4437
|
if @name_index
|
4438
|
-
@conf.insert(@name_index +
|
4438
|
+
@conf.insert(@name_index + @conf.length, " " + "stats admin " + params.to_s + "\n")
|
4439
4439
|
else
|
4440
4440
|
puts "no #{@proxy_type} name assigned"
|
4441
4441
|
return false
|
@@ -4653,7 +4653,7 @@
|
|
4653
4653
|
#
|
4654
4654
|
def balance(params = nil)
|
4655
4655
|
if @name_index
|
4656
|
-
@conf.insert(@name_index +
|
4656
|
+
@conf.insert(@name_index + @conf.length, " " + "balance " + params.to_s + "\n")
|
4657
4657
|
else
|
4658
4658
|
puts "no #{@proxy_type} name assigned"
|
4659
4659
|
return false
|
@@ -4814,7 +4814,7 @@
|
|
4814
4814
|
#
|
4815
4815
|
def cookie(params = nil)
|
4816
4816
|
if @name_index
|
4817
|
-
@conf.insert(@name_index +
|
4817
|
+
@conf.insert(@name_index + @conf.length, " " + "cookie " + params.to_s + "\n")
|
4818
4818
|
else
|
4819
4819
|
puts "no #{@proxy_type} name assigned"
|
4820
4820
|
return false
|
@@ -4839,7 +4839,7 @@
|
|
4839
4839
|
#
|
4840
4840
|
def default_server(params = nil)
|
4841
4841
|
if @name_index
|
4842
|
-
@conf.insert(@name_index +
|
4842
|
+
@conf.insert(@name_index + @conf.length, " " + "default-server " + params.to_s + "\n")
|
4843
4843
|
else
|
4844
4844
|
puts "no #{@proxy_type} name assigned"
|
4845
4845
|
return false
|
@@ -4878,7 +4878,7 @@
|
|
4878
4878
|
#
|
4879
4879
|
def fullconn(params = nil)
|
4880
4880
|
if @name_index
|
4881
|
-
@conf.insert(@name_index +
|
4881
|
+
@conf.insert(@name_index + @conf.length, " " + "fullconn " + params.to_s + "\n")
|
4882
4882
|
else
|
4883
4883
|
puts "no #{@proxy_type} name assigned"
|
4884
4884
|
return false
|
@@ -4921,7 +4921,7 @@
|
|
4921
4921
|
#
|
4922
4922
|
def hash_type(params = nil)
|
4923
4923
|
if @name_index
|
4924
|
-
@conf.insert(@name_index +
|
4924
|
+
@conf.insert(@name_index + @conf.length, " " + "hash_type " + params.to_s + "\n")
|
4925
4925
|
else
|
4926
4926
|
puts "no #{@proxy_type} name assigned"
|
4927
4927
|
return false
|
@@ -4951,7 +4951,7 @@
|
|
4951
4951
|
#
|
4952
4952
|
def http_check_disable_on_404
|
4953
4953
|
if @name_index
|
4954
|
-
@conf.insert(@name_index +
|
4954
|
+
@conf.insert(@name_index + @conf.length, " " + "http-check disable-on-404 " + "\n")
|
4955
4955
|
else
|
4956
4956
|
puts "no #{@proxy_type} name assigned"
|
4957
4957
|
return false
|
@@ -5003,7 +5003,7 @@
|
|
5003
5003
|
#
|
5004
5004
|
def http_check_send_state
|
5005
5005
|
if @name_index
|
5006
|
-
@conf.insert(@name_index +
|
5006
|
+
@conf.insert(@name_index + @conf.length, " " + "http-check send-state " + "\n")
|
5007
5007
|
else
|
5008
5008
|
puts "no #{@proxy_type} name assigned"
|
5009
5009
|
return false
|
@@ -5057,7 +5057,7 @@
|
|
5057
5057
|
#
|
5058
5058
|
def option_abortonclose
|
5059
5059
|
if @name_index
|
5060
|
-
@conf.insert(@name_index +
|
5060
|
+
@conf.insert(@name_index + @conf.length, " " + "option abortonclose " + "\n")
|
5061
5061
|
else
|
5062
5062
|
puts "no #{@proxy_type} name assigned"
|
5063
5063
|
return false
|
@@ -5099,7 +5099,7 @@
|
|
5099
5099
|
#
|
5100
5100
|
def option_accept_invalid_http_response
|
5101
5101
|
if @name_index
|
5102
|
-
@conf.insert(@name_index +
|
5102
|
+
@conf.insert(@name_index + @conf.length, " " + "option accept-invalid-http-response " + "\n")
|
5103
5103
|
else
|
5104
5104
|
puts "no #{@proxy_type} name assigned"
|
5105
5105
|
return false
|
@@ -5130,7 +5130,7 @@
|
|
5130
5130
|
#
|
5131
5131
|
def option_allbackups
|
5132
5132
|
if @name_index
|
5133
|
-
@conf.insert(@name_index +
|
5133
|
+
@conf.insert(@name_index + @conf.length, " " + "option allbackups " + "\n")
|
5134
5134
|
else
|
5135
5135
|
puts "no #{@proxy_type} name assigned"
|
5136
5136
|
return false
|
@@ -5189,7 +5189,7 @@
|
|
5189
5189
|
#
|
5190
5190
|
def option_checkcache
|
5191
5191
|
if @name_index
|
5192
|
-
@conf.insert(@name_index +
|
5192
|
+
@conf.insert(@name_index + @conf.length, " " + "option checkcache " + "\n")
|
5193
5193
|
else
|
5194
5194
|
puts "no #{@proxy_type} name assigned"
|
5195
5195
|
return false
|
@@ -5246,7 +5246,7 @@
|
|
5246
5246
|
#
|
5247
5247
|
def option_httpchk(params = nil)
|
5248
5248
|
if @name_index
|
5249
|
-
@conf.insert(@name_index +
|
5249
|
+
@conf.insert(@name_index + @conf.length, " " + "option httpchk " + params.to_s + "\n")
|
5250
5250
|
else
|
5251
5251
|
puts "no #{@proxy_type} name assigned"
|
5252
5252
|
return false
|
@@ -5278,7 +5278,7 @@
|
|
5278
5278
|
#
|
5279
5279
|
def option_ldap_check
|
5280
5280
|
if @name_index
|
5281
|
-
@conf.insert(@name_index +
|
5281
|
+
@conf.insert(@name_index + @conf.length, " " + "option ldap-check " + "\n")
|
5282
5282
|
else
|
5283
5283
|
puts "no #{@proxy_type} name assigned"
|
5284
5284
|
return false
|
@@ -5305,7 +5305,7 @@
|
|
5305
5305
|
#
|
5306
5306
|
def option_log_health_checks
|
5307
5307
|
if @name_index
|
5308
|
-
@conf.insert(@name_index +
|
5308
|
+
@conf.insert(@name_index + @conf.length, " " + "option log-health-checks " + "\n")
|
5309
5309
|
else
|
5310
5310
|
puts "no #{@proxy_type} name assigned"
|
5311
5311
|
return false
|
@@ -5358,7 +5358,7 @@
|
|
5358
5358
|
#
|
5359
5359
|
def option_mysql_check(params = nil)
|
5360
5360
|
if @name_index
|
5361
|
-
@conf.insert(@name_index +
|
5361
|
+
@conf.insert(@name_index + @conf.length, " " + "option mysql-check " + params.to_s + "\n")
|
5362
5362
|
else
|
5363
5363
|
puts "no #{@proxy_type} name assigned"
|
5364
5364
|
return false
|
@@ -5391,7 +5391,7 @@
|
|
5391
5391
|
#
|
5392
5392
|
def option_persist
|
5393
5393
|
if @name_index
|
5394
|
-
@conf.insert(@name_index +
|
5394
|
+
@conf.insert(@name_index + @conf.length, " " + "option persist " + "\n")
|
5395
5395
|
else
|
5396
5396
|
puts "no #{@proxy_type} name assigned"
|
5397
5397
|
return false
|
@@ -5427,7 +5427,7 @@
|
|
5427
5427
|
#
|
5428
5428
|
def option_redispatch
|
5429
5429
|
if @name_index
|
5430
|
-
@conf.insert(@name_index +
|
5430
|
+
@conf.insert(@name_index + @conf.length, " " + "option redispatch " + "\n")
|
5431
5431
|
else
|
5432
5432
|
puts "no #{@proxy_type} name assigned"
|
5433
5433
|
return false
|
@@ -5474,7 +5474,7 @@
|
|
5474
5474
|
#
|
5475
5475
|
def option_smtpchk(params = nil)
|
5476
5476
|
if @name_index
|
5477
|
-
@conf.insert(@name_index +
|
5477
|
+
@conf.insert(@name_index + @conf.length, " " + "option smtpchk " + params.to_s + "\n")
|
5478
5478
|
else
|
5479
5479
|
puts "no #{@proxy_type} name assigned"
|
5480
5480
|
return false
|
@@ -5518,7 +5518,7 @@
|
|
5518
5518
|
#
|
5519
5519
|
def option_srvtcpka
|
5520
5520
|
if @name_index
|
5521
|
-
@conf.insert(@name_index +
|
5521
|
+
@conf.insert(@name_index + @conf.length, " " + "option srvtcpka " + "\n")
|
5522
5522
|
else
|
5523
5523
|
puts "no #{@proxy_type} name assigned"
|
5524
5524
|
return false
|
@@ -5548,7 +5548,7 @@
|
|
5548
5548
|
#
|
5549
5549
|
def option_ssl_hello_chk
|
5550
5550
|
if @name_index
|
5551
|
-
@conf.insert(@name_index +
|
5551
|
+
@conf.insert(@name_index + @conf.length, " " + "option ssl-hello-chk " + "\n")
|
5552
5552
|
else
|
5553
5553
|
puts "no #{@proxy_type} name assigned"
|
5554
5554
|
return false
|
@@ -5592,7 +5592,7 @@
|
|
5592
5592
|
#
|
5593
5593
|
def option_tcp_smart_connect
|
5594
5594
|
if @name_index
|
5595
|
-
@conf.insert(@name_index +
|
5595
|
+
@conf.insert(@name_index + @conf.length, " " + "option tcp-smart-connect " + "\n")
|
5596
5596
|
else
|
5597
5597
|
puts "no #{@proxy_type} name assigned"
|
5598
5598
|
return false
|
@@ -5624,7 +5624,7 @@
|
|
5624
5624
|
#
|
5625
5625
|
def option_transparent
|
5626
5626
|
if @name_index
|
5627
|
-
@conf.insert(@name_index +
|
5627
|
+
@conf.insert(@name_index + @conf.length, " " + "option transparent " + "\n")
|
5628
5628
|
else
|
5629
5629
|
puts "no #{@proxy_type} name assigned"
|
5630
5630
|
return false
|
@@ -5677,7 +5677,7 @@
|
|
5677
5677
|
#
|
5678
5678
|
def persist_rdp_cookie(params = nil)
|
5679
5679
|
if @name_index
|
5680
|
-
@conf.insert(@name_index +
|
5680
|
+
@conf.insert(@name_index + @conf.length, " " + "persist rdp-cookie " + params.to_s + "\n")
|
5681
5681
|
else
|
5682
5682
|
puts "no #{@proxy_type} name assigned"
|
5683
5683
|
return false
|
@@ -5708,7 +5708,7 @@
|
|
5708
5708
|
#
|
5709
5709
|
def retries(params = nil)
|
5710
5710
|
if @name_index
|
5711
|
-
@conf.insert(@name_index +
|
5711
|
+
@conf.insert(@name_index + @conf.length, " " + "retries " + params.to_s + "\n")
|
5712
5712
|
else
|
5713
5713
|
puts "no #{@proxy_type} name assigned"
|
5714
5714
|
return false
|
@@ -5854,7 +5854,7 @@
|
|
5854
5854
|
#
|
5855
5855
|
def source(params = nil)
|
5856
5856
|
if @name_index
|
5857
|
-
@conf.insert(@name_index +
|
5857
|
+
@conf.insert(@name_index + @conf.length, " " + "source " + params.to_s + "\n")
|
5858
5858
|
else
|
5859
5859
|
puts "no #{@proxy_type} name assigned"
|
5860
5860
|
return false
|
@@ -5912,7 +5912,7 @@
|
|
5912
5912
|
#
|
5913
5913
|
def stats_auth(params = nil)
|
5914
5914
|
if @name_index
|
5915
|
-
@conf.insert(@name_index +
|
5915
|
+
@conf.insert(@name_index + @conf.length, " " + "stats auth " + params.to_s + "\n")
|
5916
5916
|
else
|
5917
5917
|
puts "no #{@proxy_type} name assigned"
|
5918
5918
|
return false
|
@@ -5959,7 +5959,7 @@
|
|
5959
5959
|
#
|
5960
5960
|
def stats_enable
|
5961
5961
|
if @name_index
|
5962
|
-
@conf.insert(@name_index +
|
5962
|
+
@conf.insert(@name_index + @conf.length, " " + "stats enable " + "\n")
|
5963
5963
|
else
|
5964
5964
|
puts "no #{@proxy_type} name assigned"
|
5965
5965
|
return false
|
@@ -6006,7 +6006,7 @@
|
|
6006
6006
|
#
|
6007
6007
|
def stats_hide_version
|
6008
6008
|
if @name_index
|
6009
|
-
@conf.insert(@name_index +
|
6009
|
+
@conf.insert(@name_index + @conf.length, " " + "stats hide-version " + "\n")
|
6010
6010
|
else
|
6011
6011
|
puts "no #{@proxy_type} name assigned"
|
6012
6012
|
return false
|
@@ -6055,7 +6055,7 @@
|
|
6055
6055
|
#
|
6056
6056
|
def stats_realm(params = nil)
|
6057
6057
|
if @name_index
|
6058
|
-
@conf.insert(@name_index +
|
6058
|
+
@conf.insert(@name_index + @conf.length, " " + "stats realm " + params.to_s + "\n")
|
6059
6059
|
else
|
6060
6060
|
puts "no #{@proxy_type} name assigned"
|
6061
6061
|
return false
|
@@ -6106,7 +6106,7 @@
|
|
6106
6106
|
#
|
6107
6107
|
def stats_refresh(params = nil)
|
6108
6108
|
if @name_index
|
6109
|
-
@conf.insert(@name_index +
|
6109
|
+
@conf.insert(@name_index + @conf.length, " " + "stats refresh " + params.to_s + "\n")
|
6110
6110
|
else
|
6111
6111
|
puts "no #{@proxy_type} name assigned"
|
6112
6112
|
return false
|
@@ -6156,7 +6156,7 @@
|
|
6156
6156
|
#
|
6157
6157
|
def stats_scope(params = nil)
|
6158
6158
|
if @name_index
|
6159
|
-
@conf.insert(@name_index +
|
6159
|
+
@conf.insert(@name_index + @conf.length, " " + "stats scope " + params.to_s + "\n")
|
6160
6160
|
else
|
6161
6161
|
puts "no #{@proxy_type} name assigned"
|
6162
6162
|
return false
|
@@ -6192,7 +6192,7 @@
|
|
6192
6192
|
#
|
6193
6193
|
def stats_show_desc(params = nil)
|
6194
6194
|
if @name_index
|
6195
|
-
@conf.insert(@name_index +
|
6195
|
+
@conf.insert(@name_index + @conf.length, " " + "stats show-desc " + params.to_s + "\n")
|
6196
6196
|
else
|
6197
6197
|
puts "no #{@proxy_type} name assigned"
|
6198
6198
|
return false
|
@@ -6216,7 +6216,7 @@
|
|
6216
6216
|
#
|
6217
6217
|
def stats_show_legends
|
6218
6218
|
if @name_index
|
6219
|
-
@conf.insert(@name_index +
|
6219
|
+
@conf.insert(@name_index + @conf.length, " " + "stats show-legends " + "\n")
|
6220
6220
|
else
|
6221
6221
|
puts "no #{@proxy_type} name assigned"
|
6222
6222
|
return false
|
@@ -6253,7 +6253,7 @@
|
|
6253
6253
|
#
|
6254
6254
|
def stats_show_node(params = nil)
|
6255
6255
|
if @name_index
|
6256
|
-
@conf.insert(@name_index +
|
6256
|
+
@conf.insert(@name_index + @conf.length, " " + "stats show-node " + params.to_s + "\n")
|
6257
6257
|
else
|
6258
6258
|
puts "no #{@proxy_type} name assigned"
|
6259
6259
|
return false
|
@@ -6312,7 +6312,7 @@
|
|
6312
6312
|
#
|
6313
6313
|
def stats_uri(params = nil)
|
6314
6314
|
if @name_index
|
6315
|
-
@conf.insert(@name_index +
|
6315
|
+
@conf.insert(@name_index + @conf.length, " " + "stats uri " + params.to_s + "\n")
|
6316
6316
|
else
|
6317
6317
|
puts "no #{@proxy_type} name assigned"
|
6318
6318
|
return false
|
@@ -6355,7 +6355,7 @@
|
|
6355
6355
|
#
|
6356
6356
|
def timeout_check(params = nil)
|
6357
6357
|
if @name_index
|
6358
|
-
@conf.insert(@name_index +
|
6358
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout check " + params.to_s + "\n")
|
6359
6359
|
else
|
6360
6360
|
puts "no #{@proxy_type} name assigned"
|
6361
6361
|
return false
|
@@ -6396,7 +6396,7 @@
|
|
6396
6396
|
#
|
6397
6397
|
def timeout_connect(params = nil)
|
6398
6398
|
if @name_index
|
6399
|
-
@conf.insert(@name_index +
|
6399
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout connect " + params.to_s + "\n")
|
6400
6400
|
else
|
6401
6401
|
puts "no #{@proxy_type} name assigned"
|
6402
6402
|
return false
|
@@ -6428,7 +6428,7 @@
|
|
6428
6428
|
#
|
6429
6429
|
def timeout_queue(params = nil)
|
6430
6430
|
if @name_index
|
6431
|
-
@conf.insert(@name_index +
|
6431
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout queue " + params.to_s + "\n")
|
6432
6432
|
else
|
6433
6433
|
puts "no #{@proxy_type} name assigned"
|
6434
6434
|
return false
|
@@ -6478,7 +6478,7 @@
|
|
6478
6478
|
#
|
6479
6479
|
def timeout_server(params = nil)
|
6480
6480
|
if @name_index
|
6481
|
-
@conf.insert(@name_index +
|
6481
|
+
@conf.insert(@name_index + @conf.length, " " + "timeout server " + params.to_s + "\n")
|
6482
6482
|
else
|
6483
6483
|
puts "no #{@proxy_type} name assigned"
|
6484
6484
|
return false
|
@@ -6490,7 +6490,7 @@
|
|
6490
6490
|
#
|
6491
6491
|
def config
|
6492
6492
|
if @name_index
|
6493
|
-
proxy_config = @conf[0].to_s + @conf.uniq[1..@conf.length].
|
6493
|
+
proxy_config = @conf[0].to_s + @conf.uniq[1..@conf.length].to_s + "\n"
|
6494
6494
|
return proxy_config
|
6495
6495
|
else
|
6496
6496
|
puts "#{@proxy_type} name not defined"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhaproxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joel Bryan Juliano
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-05 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -78,6 +78,6 @@ rubyforge_project:
|
|
78
78
|
rubygems_version: 1.3.7
|
79
79
|
signing_key:
|
80
80
|
specification_version: 3
|
81
|
-
summary: A
|
81
|
+
summary: A HAproxy TCP/HTTP Load Balancer gem for Ruby.
|
82
82
|
test_files: []
|
83
83
|
|