The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

 use base MYDan::Util::DirConf;

 sub define { qw( log code ) };

 my $conf = MYDan::Util::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