NAME

WaitReSS::Config - WaitReSS configuration

VERSION

version 0.001

SYNOPSIS

use WaitReSS::Config;
my $config = WaitRess::Config->new( file => "/path/to/file" );
my $val = $config->get( "foo.bar.baz" );
$config->set( "foo.bar.baz", 42 );
$config->save;

DESCRIPTION

This module implements a basic persistant configuration. The configuration is storead as YAML, yet keys are flattened using dots - eg, a foo.bar.baz key will fetch at depth 3.

ATTRIBUTES

file

The configuration file path.

METHODS

save

$config->save;

Save $config to its on-disk file.

get

my $value = $config->get( $key );

Return the $value associated to $key in $config.

set

$config->set( $key, $value );

Associate a given $value to a $key in $config.

AUTHOR

Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Jerome Quelin.

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