NAME
RackMan - Main backend module
SYNOPSIS
use RackMan;
use RackMan::Config;
my $config = RackMan::Config->new(-file => "/etc/rack.conf");
my $rackman = RackMan->new({ config => $config });
DESCRIPTION
This module provides a simple interface to access and fetch information about RackObjects from the RackTables database.
METHODS
connection
Connect to the RackTables database using the parameters from the configuration file.
device
Alias for device_by_name().
device_by_id
Try to find and return the RackObject with the given ID.
device_by_name
Try to find and return the RackObject with the given name.
get_scm
Return a RackMan::SCM object corresponding to the tool selected by the configuration file and command line options.
process
Process and execute an action as given from the command line.
Arguments are expected to be:
the action name
optional action options, as a plain hash
RackObject name
error
Class method to print an error and exit.
error_n
Class method to print an error, preceded by a newline, and exit.
set_status
Class method to set the return status of the program.
status
Class method to get the return status of the program.
warning
Class method to print a warning.
AUTHOR
Sebastien Aperghis-Tramoni (sebastien@aperghis.net)