NAME

App::Xssh::Config - Encapsulates the configuration for xssh - using Config::General

SYNOPSYS

use App::Xssh::Config;

my $config = App::Xssh::Config->new();
my $data = $config->read();

$config->add(["location","path","setting"],"value");

print $config->show();
$config->write();

METHODS

new()

Construcor, just used to provide an object with access to the methods

read()

Reads the config file into memory, returns a hashref pointing to the config data

add($path,$value)

Adds a data to the existing config data - in memory.

$path

An arrayref to the location of the atrribute to be stored.

$value

A string to be stored at that location.

delete($path)

Deletes data from the existing config data - in memory.

$path

An arrayref to the location of the atrribute to be deleted.

show()

Wanders through the config data, and returns a string to describe the data hierachy

write()

Writes the current config data back to a config file on disk. Completely overwrites the existinng file.

COPYRIGHT & LICENSE

Copyright 2010-2011 Evan Giles.

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