line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package System::Introspector::Probe::ResolvConf; |
2
|
1
|
|
|
1
|
|
29772
|
use Moo; |
|
1
|
|
|
|
|
17267
|
|
|
1
|
|
|
|
|
7
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
|
|
230
|
use System::Introspector::Util qw( |
5
|
|
|
|
|
|
|
output_from_file |
6
|
|
|
|
|
|
|
transform_exceptions |
7
|
1
|
|
|
1
|
|
3502
|
); |
|
1
|
|
|
|
|
4
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has resolv_conf_file => ( |
10
|
|
|
|
|
|
|
is => 'ro', |
11
|
|
|
|
|
|
|
default => sub { '/etc/resolv.conf' }, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub gather { |
15
|
1
|
|
|
1
|
0
|
1126
|
my ($self) = @_; |
16
|
|
|
|
|
|
|
return { |
17
|
|
|
|
|
|
|
resolv_conf_file => transform_exceptions { |
18
|
1
|
|
|
1
|
|
7
|
my $file = $self->resolv_conf_file; |
19
|
|
|
|
|
|
|
return { |
20
|
1
|
|
|
|
|
7
|
file_name => $file, |
21
|
|
|
|
|
|
|
body => scalar output_from_file $file, |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
}, |
24
|
1
|
|
|
|
|
9
|
}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |