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.7911';
3 6     6   205154 use strict;
  6         15  
  6         239  
4 6     6   30 use warnings;
  6         11  
  6         364  
5 6     6   30 use parent qw( Exporter );
  6         12  
  6         44  
6              
7             our @EXPORT = qw( proc );
8              
9 6         525 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_old => '/etc/timezone',
19             timezone => '/etc/localtime',
20             issue => '/etc/issue',
21             scaling_cur_freq => '/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq',
22 6     6   694 };
  6         13  
23              
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Sys::Info::Driver::Linux
35              
36             =head1 VERSION
37              
38             version 0.7911
39              
40             =head1 SYNOPSIS
41              
42             use Sys::Info::Driver::Linux;
43              
44             =head1 DESCRIPTION
45              
46             This is the main module in the C<Linux> driver collection.
47              
48             =head1 NAME
49              
50             Sys::Info::Driver::Linux - Linux driver for Sys::Info
51              
52             =head1 METHODS
53              
54             None.
55              
56             =head1 CONSTANTS
57              
58             =head2 proc
59              
60             Automatically exported. Includes paths to several files.
61              
62             =head1 AUTHOR
63              
64             Burak Gursoy
65              
66             =head1 COPYRIGHT AND LICENSE
67              
68             This software is copyright (c) 2006 by Burak Gursoy.
69              
70             This is free software; you can redistribute it and/or modify it under
71             the same terms as the Perl 5 programming language system itself.
72              
73             =cut