05 Jul 2016 12:40:08 UTC
- Distribution: Test-Instance-Apache
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (3)
- Testers (98 / 529 / 0)
- KwaliteeBus factor: 0
- 70.85% Coverage
- License: perl_5
- Activity24 month
- Download (14.13KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userTBSLIVER Tom Bloorand 1 contributors
- Tom Bloor
- SEE ALSO
Test::Instance::Apache::Config - Create Apache Config File
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;
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.
These are the attributes available to set on a new object.
The target filename to write the new config file to.
The arrayref to use to create the configuration file
Write the config to the target filename.
Tom Bloor <email@example.com>
Copyright 2016 Tom Bloor
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Test::Instance::Apache, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::Instance::Apache
For more information on module installation, please visit the detailed CPAN module installation guide.