| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Devel::AssertOS::Linux::Centos; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use Devel::CheckOS; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
103
|
|
|
4
|
2
|
|
|
2
|
|
8
|
use strict; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
33
|
|
|
5
|
2
|
|
|
2
|
|
5
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
98
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9
|
use Devel::CheckOS::Helpers::LinuxOSrelease 'distributor_id'; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
80
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
7
|
no warnings 'redefine'; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
255
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '1.0'; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub os_is { |
|
14
|
15
|
|
|
15
|
|
91
|
my $id = distributor_id; |
|
15
|
|
|
|
|
|
|
|
|
16
|
15
|
50
|
33
|
|
|
97
|
Devel::CheckOS::os_is('Linux') && |
|
17
|
|
|
|
|
|
|
defined($id) && |
|
18
|
|
|
|
|
|
|
$id eq 'centos'; |
|
19
|
|
|
|
|
|
|
} |
|
20
|
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
|
|
sub expn { "The Linux distribution is some version of Centos" } |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Devel::CheckOS::die_unsupported() unless ( os_is() ); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 COPYRIGHT and LICENCE |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Copyright 2024 David Cantrell |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|