diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-25 09:43:38 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-25 19:58:35 +0300 |
commit | 585a5a925342c357d46fbad273bfafc03bc33dcd (patch) | |
tree | 0aa81c8e85543ebaa25ef88292bb318ac4294e04 /Makefile.PL | |
parent | edfeb103b85e10aa9e6825d3b92c5888fb4dea94 (diff) | |
download | config-haproxy-585a5a925342c357d46fbad273bfafc03bc33dcd.tar.gz config-haproxy-585a5a925342c357d46fbad273bfafc03bc33dcd.tar.bz2 |
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.
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 3 |
1 files changed, 2 insertions, 1 deletions
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 }, |