NAME

Test::Instance::Apache::Config - Create Apache Config File

SYNOPSIS

use FindBin qw/ $Bin /;
use Test::Instance::Apache::Config;

my $config_manager = Test::Instance::Apache::Config->new(
  filename => "$Bin/conf/httpd.conf",
  config => [
    PidFile => "$Bin/httpd.pid",
    Include => "$Bin/mods_enabled/*.load",
    Include => "$Bin/mods_enabled/*.conf",
  ],
);

$config_manager->write_config;

DESCRIPTION

Test::Instance::Apache allows you to spin up a complete Apache instance for testing. This is useful when developing various plugins for Apache, or if your application is tightly integrated to the webserver.

Attributes

These are the attributes available to set on a new object.

filename

The target filename to write the new config file to.

config

The arrayref to use to create the configuration file

Methods

write_config

Write the config to the target filename.

AUTHOR

Tom Bloor <t.bloor@shadowcat.co.uk>

COPYRIGHT

Copyright 2016 Tom Bloor

LICENCE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO