| 1 | # | ||
| 2 | # This file is part of Config-Model-OpenSsh | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2008-2025 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | package Config::Model::Backend::OpenSsh::Sshd ; | ||
| 14 | 3 | $Config::Model::Backend::OpenSsh::Sshd::VERSION = '2.10.2.1'; | |
| 15 | 3 | ▶ | use Mouse ; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 3 | extends "Config::Model::Backend::Any" ; | |
| 17 | |||
| 18 | 3 | with ( | |
| 19 | 'Config::Model::Backend::OpenSsh::Role::Reader', | ||
| 20 | 'Config::Model::Backend::OpenSsh::Role::Writer', | ||
| 21 | ); | ||
| 22 | |||
| 23 | 3 | ▶ | use Carp ; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 3 | ▶ | use IO::File ; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 3 | ▶ | use Log::Log4perl; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 3 | ▶ | use File::Copy ; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 3 | ▶ | use File::Path ; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | |||
| 29 | 3 | my $logger = Log::Log4perl::get_logger("Backend::OpenSsh"); | |
| 30 | |||
| 31 | # now the write part | ||
| 32 | 4 | ▶ | sub write { |
|
Subroutine
write: called CC=1 SCAR=0.0
Pod
documented
| |||
| 33 | 4 | my $self = shift; | |
| 34 | 4 | $self->ssh_write(@_) ; | |
| 35 | } | ||
| 36 | |||
| 37 | 0 | ▶ | sub _write_line { |
|
Subroutine
_write_line: not called CC=1 SCAR=6.9
| |||
| 38 | 0 | return sprintf("%-20s %s\n",@_) ; | |
| 39 | } | ||
| 40 | |||
| 41 | |||
| 42 | 3 | ▶ | no Mouse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 43 | |||
| 44 | 3 | 1; | |
| 45 | |||
| 46 | # ABSTRACT: Backend for sshd configuration files | ||
| 47 | |||
| 48 | __END__ | ||