NAME

Slaughter::Info::freebsd - Perl Automation Tool Helper FreeBSD info implementation

SYNOPSIS

This module is the FreeBSD 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 only on FreeBSD systems, and will determine such details as the local hostname, the free RAM, any IP addresses, etc.

Usage is:

use Slaughter::Info::freebsd;

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

# use info now ..
print "We have $data->{'ip_count'} IPv4 addresses.\n";
print "We have $data->{'ip6_count'} IPv6 addresses.\n";

When this module is used an attempt is also made to load the module Slaughter::Info::Local::freebsd - if that succeeds it will be used to augment the information discovered and made available to slaughter policies.

AUTHOR

Steve
--
http://www.steve.org.uk/

LICENSE

Copyright (c) 2010-2012 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.

new

Create a new instance of this object.

getInformation

This function retrieves meta-information about the current host.

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