File Coverage

blib/lib/Sys/Info/Driver/Linux.pm
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             package Sys::Info::Driver::Linux;
2             $Sys::Info::Driver::Linux::VERSION = '0.7905';
3 2     2   12 use strict;
  2         5  
  2         51  
4 2     2   10 use warnings;
  2         9  
  2         59  
5 2     2   10 use base qw( Exporter );
  2         3  
  2         269  
6              
7             our @EXPORT = qw( proc );
8              
9 2         146 use constant proc => { ## no critic (NamingConventions::Capitalization)
10             loadavg => '/proc/loadavg', # average cpu load
11             cpuinfo => '/proc/cpuinfo', # cpu information
12             uptime => '/proc/uptime', # uptime file
13             version => '/proc/version', # os version
14             meminfo => '/proc/meminfo',
15             swaps => '/proc/swaps',
16             fstab => '/etc/fstab', # for filesystem type of the current disk
17             resolv => '/etc/resolv.conf',
18             timezone => '/etc/timezone',
19             issue => '/etc/issue',
20 2     2   12 };
  2         9  
21              
22             1;
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Sys::Info::Driver::Linux
33              
34             =head1 VERSION
35              
36             version 0.7905
37              
38             =head1 SYNOPSIS
39              
40             use Sys::Info::Driver::Linux;
41              
42             =head1 DESCRIPTION
43              
44             This is the main module in the C<Linux> driver collection.
45              
46             =head1 NAME
47              
48             Sys::Info::Driver::Linux - Linux driver for Sys::Info
49              
50             =head1 METHODS
51              
52             None.
53              
54             =head1 CONSTANTS
55              
56             =head2 proc
57              
58             Automatically exported. Includes paths to several files.
59              
60             =head1 AUTHOR
61              
62             Burak Gursoy <burak@cpan.org>
63              
64             =head1 COPYRIGHT AND LICENSE
65              
66             This software is copyright (c) 2006 by Burak Gursoy.
67              
68             This is free software; you can redistribute it and/or modify it under
69             the same terms as the Perl 5 programming language system itself.
70              
71             =cut