File Coverage

blib/lib/Config/Model/models/Ssh.pl
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 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   61903 use strict;
  2     1   5  
  2         64  
  1         2569  
  1         4  
  1         18  
11 2     2   8 use warnings;
  2     1   4  
  2         258  
  1         4  
  1         48  
  1         121  
12              
13             return [
14             {
15             'accept' => [
16             '.*',
17             {
18             'summary' => 'boilerplate parameter that may hide a typo',
19             'type' => 'leaf',
20             'value_type' => 'uniline',
21             'warn' => 'Unknown parameter. Please make sure there\'s no typo and contact the author'
22             }
23             ],
24             'class_description' => 'This configuration class was generated from ssh_system documentation.
25             by L<parse-man.pl|https://github.com/dod38fr/config-model-openssh/contrib/parse-man.pl>
26             ',
27             'element' => [
28             'Host',
29             {
30             'cargo' => {
31             'config_class_name' => 'Ssh::HostElement',
32             'type' => 'node'
33             },
34             'description' => 'Restricts the
35             following declarations (up to the next B<Host> or
36             B<Match> keyword) to be only for those hosts that match
37             one of the patterns given after the keyword. If more than
38             one pattern is provided, they should be separated by
39             whitespace. A single \'*\' as a pattern can be
40             used to provide global defaults for all hosts. The host is
41             usually the I<hostname> argument given on the command
42             line (see the B<CanonicalizeHostname> keyword for
43             exceptions).
44              
45             A pattern entry
46             may be negated by prefixing it with an exclamation mark
47             (\'!\'). If a negated entry is matched, then the
48             B<Host> entry is ignored, regardless of whether any
49             other patterns on the line match. Negated matches are
50             therefore useful to provide exceptions for wildcard
51             matches.
52              
53             See
54             I<PATTERNS> for more information on patterns.',
55             'index_type' => 'string',
56             'ordered' => '1',
57             'type' => 'hash'
58             },
59             'Match',
60             {
61             'cargo' => {
62             'config_class_name' => 'Ssh::HostElement',
63             'type' => 'node'
64             },
65             'description' => 'Restricts the
66             following declarations (up to the next B<Host> or
67             B<Match> keyword) to be used only when the conditions
68             following the B<Match> keyword are satisfied. Match
69             conditions are specified using one or more criteria or the
70             single token B<all> which always matches. The available
71             criteria keywords are: B<canonical>, B<final>,
72             B<exec>, B<host>, B<originalhost>, B<user>,
73             and B<localuser>. The B<all> criteria must appear
74             alone or immediately after B<canonical> or B<final>.
75             Other criteria may be combined arbitrarily. All criteria but
76             B<all>, B<canonical>, and B<final> require an
77             argument. Criteria may be negated by prepending an
78             exclamation mark (\'!\').
79              
80             The
81             B<canonical> keyword matches only when the configuration
82             file is being re-parsed after hostname canonicalization (see
83             the B<CanonicalizeHostname> option). This may be useful
84             to specify conditions that work with canonical host names
85             only.
86              
87             The
88             B<final> keyword requests that the configuration be
89             re-parsed (regardless of whether B<CanonicalizeHostname>
90             is enabled), and matches only during this final pass. If
91             B<CanonicalizeHostname> is enabled, then
92             B<canonical> and B<final> match during the same
93             pass.
94              
95             The B<exec>
96             keyword executes the specified command under the
97             user\'s shell. If the command returns a zero exit
98             status then the condition is considered true. Commands
99             containing whitespace characters must be quoted. Arguments
100             to B<exec> accept the tokens described in the
101             I<TOKENS> section.
102              
103             The other
104             keywords\' criteria must be single entries or
105             comma-separated lists and may use the wildcard and negation
106             operators described in the I<PATTERNS> section. The
107             criteria for the B<host> keyword are matched against the
108             target hostname, after any substitution by the
109             B<Hostname> or B<CanonicalizeHostname> options. The
110             B<originalhost> keyword matches against the hostname as
111             it was specified on the command-line. The B<user>
112             keyword matches against the target username on the remote
113             host. The B<localuser> keyword matches against the name
114             of the local user running L<ssh(1)> (this keyword may be useful
115             in system-wide B<ssh_config> files).',
116             'index_type' => 'string',
117             'ordered' => '1',
118             'type' => 'hash'
119             }
120             ],
121             'generated_by' => 'parse-man.pl from ssh_system 9.0p1 doc',
122             'include' => [
123             'Ssh::HostElement'
124             ],
125             'include_after' => 'Host',
126             'license' => 'LGPL2',
127             'name' => 'Ssh',
128             'rw_config' => {
129             'auto_create' => '1',
130             'backend' => 'OpenSsh::Ssh',
131             'config_dir' => '~/.ssh',
132             'file' => 'config'
133             }
134             }
135             ]
136             ;
137