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
|
3
|
|
|
3
|
|
43359
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
86
|
|
11
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
154
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
$Config::Model::Backend::OpenSsh::Sshd::VERSION = '2.9.0.2'; |
14
|
|
|
|
|
|
|
use Mouse ; |
15
|
3
|
|
|
3
|
|
16
|
extends "Config::Model::Backend::Any" ; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
22
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
with ( |
18
|
|
|
|
|
|
|
'Config::Model::Backend::OpenSsh::Role::Reader', |
19
|
|
|
|
|
|
|
'Config::Model::Backend::OpenSsh::Role::Writer', |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use Carp ; |
23
|
3
|
|
|
3
|
|
1503
|
use IO::File ; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
180
|
|
24
|
3
|
|
|
3
|
|
734
|
use Log::Log4perl; |
|
3
|
|
|
|
|
3212
|
|
|
3
|
|
|
|
|
335
|
|
25
|
3
|
|
|
3
|
|
18
|
use File::Copy ; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
21
|
|
26
|
3
|
|
|
3
|
|
990
|
use File::Path ; |
|
3
|
|
|
|
|
3980
|
|
|
3
|
|
|
|
|
141
|
|
27
|
3
|
|
|
3
|
|
18
|
|
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
321
|
|
28
|
|
|
|
|
|
|
my $logger = Log::Log4perl::get_logger("Backend::OpenSsh"); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# now the write part |
31
|
|
|
|
|
|
|
my $self = shift; |
32
|
|
|
|
|
|
|
$self->ssh_write(@_) ; |
33
|
4
|
|
|
4
|
1
|
1016173
|
} |
34
|
4
|
|
|
|
|
30
|
|
35
|
|
|
|
|
|
|
return sprintf("%-20s %s\n",@_) ; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
|
|
|
39
|
|
|
|
|
|
|
no Mouse; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
3
|
|
|
3
|
|
17
|
|
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
19
|
|
43
|
|
|
|
|
|
|
# ABSTRACT: Backend for sshd configuration files |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=pod |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding UTF-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Config::Model::Backend::OpenSsh::Sshd - Backend for sshd configuration files |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
version 2.9.0.2 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SYNOPSIS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
None |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DESCRIPTION |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This class provides a backend to read and write sshd client configuration files. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This class is a plugin for L<Config::Model::BackendMgr>. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SEE ALSO |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
L<cme>, L<Config::Model>, |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHOR |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Dominique Dumont |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This software is Copyright (c) 2008-2022 by Dominique Dumont. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This is free software, licensed under: |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
The GNU Lesser General Public License, Version 2.1, February 1999 |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |