From 585a5a925342c357d46fbad273bfafc03bc33dcd Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 25 May 2019 09:43:38 +0300 Subject: Check configuration file syntax before saving it * Makefile.PL: Require IPC::Cmd * lib/Config/HAProxy.pm (lint): New method. (save): Call linter prior to saving. Take optional dry_run keyword as argument. * t/lint.t: New file. --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index d9cc6e8..754d3aa 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,7 +16,8 @@ WriteMakefile( 'Text::Locus' => 1.00, 'Text::ParseWords' => 0, 'File::Basename' => 0, - 'File::Temp' => 0 + 'File::Temp' => 0, + 'IPC::Cmd' => 0 }, META_MERGE => { 'meta-spec' => { version => 2 }, -- cgit v1.2.1