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

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.