NAME

Vulcan::DirConf - Interface module: directory configuration with a YAML file.

SYNOPSIS

use base Vulcan::DirConf;

sub define { qw( log code ) };

my $conf = Vulcan::DirConf->new( '/conf/file' );
my $conf->make() if ! $conf->check;

my $conf = $conf->path(); ## HASH ref
my $logdir = $conf->path( 'log' );
my $logfile = $conf->path( log => 'foobar.log' );

METHODS

check()

Inspect directories. Returns true if all directories exist, false otherwise.

make()

Set up directories. Returns invoking object.

path( name => @name )

Join a known path name with @name. See File::Spec->join().

macro( $path )

Replace $RealBin and $Bin in $path