++ed by:
SSCAFFIDI

1 PAUSE user

Adam Flott

NAME

Thorium::SystemInfo - Query system information

VERSION

version 0.510

SYNOPSIS

    use Thorium::SystemInfo;

    my $sysinfo = Thorium::SystemInfo->new;

    print 'eth0 IP is ', $sysinfo->eth0_ipv4;

DESCRIPTION

A class for querying information about the system. Primarily useful in Thorium::BuildConf fixups.

ATTRIBUTES

Optional Attributes

  • eth0_ipv4 (rw, Str)

    eth0 IPv4 address.

  • ethernet_interfaces (rw, HashRef)

    HashRef where the key is the ethernet device name and the value is the IPv4 address.

  • hostname (ro, Str)

    Hostname.

  • os (ro, Sys::Info::OS)

    Returns a Sys::Info::OS object.

AUTHOR

Adam Flott <adam@npjh.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.