NAME

Slaughter::Info::generic - Determine information about a generic host.

SYNOPSIS

This module is the generic version of the Slaughter information-gathering module.

Modules beneath the Slaughter::Info namespace are loaded when slaughter is executed, they are used to populate a hash with information about the current host.

This module is loaded when no specific module matches the local system, and is essentially a no-operation module. A real info-module is loaded by consulting with the value of $^O, so for example we might load Slaughter::Info::linux.

The information discovered can be dumped by running slaughter

~# slaughter --dump

Usage of this module is as follows:

use Slaughter::Info::generic;

my $obj  = Slaughter::Info::generic->new();
my $data = $obj->getInformation();

NOTE: The data retrieved by this generic module is almost empty.

The only user-callable method is the getInformation method which is designed to return a hash of data about the current system.

METHODS

Now follows documentation on the available methods.

new

Create a new instance of this object.

getInformation

This function retrieves meta-information about the current host, and is the fall-back module which is used if a system-specific information module cannot be loaded.

The return value is a hash-reference of data determined dynamically.

Currently the following OS-specific modules exist:

Slaughter::Info::linux
Slaughter::Info::MSWin32

AUTHOR

Steve Kemp <steve@steve.org.uk>

LICENSE

Copyright (c) 2010-2015 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.