File Coverage

blib/lib/Config/Model/models/Sshd/MatchBlock.pl
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             #
2             # This file is part of Config-Model-OpenSsh
3             #
4             # This software is Copyright (c) 2008-2022 by Dominique Dumont.
5             #
6             # This is free software, licensed under:
7             #
8             # The GNU Lesser General Public License, Version 2.1, February 1999
9             #
10 2     2   2346 use strict;
  2         6  
  2         59  
11 2     2   10 use warnings;
  2         5  
  2         148  
12              
13             return [
14             {
15             'author' => [
16             'Dominique Dumont'
17             ],
18             'class_description' => 'Class to represent a Match block inside a sshd_config file.
19              
20             It\'s made of a list of conditions to match and a list of
21             parameters to apply to the matched items.',
22             'copyright' => [
23             '2009-2011 Dominique Dumont'
24             ],
25             'element' => [
26             'Condition',
27             {
28             'config_class_name' => 'Sshd::MatchCondition',
29             'description' => 'Specify the condition (User, Group, Host, Address) necessary for this Match block to be applied',
30             'type' => 'node'
31             },
32             'Settings',
33             {
34             'config_class_name' => 'Sshd::MatchElement',
35             'description' => 'Defines the sshd_config parameters that will override general settings when all defined User, Group, Host and Address patterns match.',
36             'type' => 'node'
37             }
38             ],
39             'license' => 'LGPL2',
40             'name' => 'Sshd::MatchBlock'
41             }
42             ]
43             ;
44