NAME

Local::Cluster::Config - Cluster configuration methods

SYNOPSIS

my $config = Local::Cluster::Config->new( '/config/dir' );

if ( my %update = $config->load() )
{
    $config->update( %update );
}

my $compressed = $config->zip();
my $md5 = $config->md5();

METHODS

unzip()

Returns decompressed config.

unzip()

Returns compressed config.

unzip()

Returns MD5 digest of serialized config.

load()

Delta loads ( no change == no-op ) configs into a HASH. Returns HASH reference in scalar context. Returns flattened HASH in list context.

update( cluster1 => config1, cluster2 => config2 .. )

Updates object.

NOTE

See Local::Cluster