summaryrefslogtreecommitdiff
path: root/t/Test/HAProxy.pm
blob: ca7d8cec7337780fc221cd43d72497ea73b2f3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package Test::HAProxy;
use strict;
use warnings;
use parent 'Config::HAProxy';
use File::Basename;
use File::Temp;

sub new {
    my $class = shift;

    my $file = new File::Temp;
    while (<main::DATA>) {
	print $file $_;
    }
    close $file;
    $class->SUPER::new($file->filename)->parse;
}

1;

    
    

Return to:

Send suggestions and report system problems to the System administrator.