Toader - A CMS meant to be integrated with a versioning system.
Version 1.2.1
use Toader; my $foo = Toader->new({dir=>$toaderDir}); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This is the directory to intiate in.
This is required and needs to be a Toader directory.
This is the output directory to use when rendering.
my $toader=Toader->new(\%args); if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
This returns the Config::Tiny object storing the Toader config.
There is no need to do any error checking as long as Toader new suceeded with out issue.
my $config=$toader->getConfig; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
This returns the Toader::Config object that was created when this module was created.
my $configObj=$toader->getConfigObj; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
This returns a Toader::Directory object with the directory set to the Toader root.
my $dirobj=$toader->getDirObj; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
This returns the output directory.
If none is specified, undef is returned.
There is no reason for check for errors if new succeeded with out error.
my $outputdir=$toader->getOutputDir; if( defined( $outputdir ) ){ print "outputdir='".$outputdir."'\n"; }else{ print "No output directory defined.\n"; }
This returns a Toader::pathHelper object for this Toader object.
If the Toader object initialized with out issue, then there is no reason to check for an error.
my $pathHelper=$toader->getPathHelper; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
This returns the root directory for what Toader is using.
If the returned value is not defined, one has not been set yet.
my $rootdir=$toader->getRootDir; if ( $foo->error ){ warn('Error:'.$foo->error.':'.$toader->errorFlag.': '.$foo->errorString); }
This sets the output directory.
$foo->setOutputDir( $dir ); if ( $foo->error ){ warn('Error:'.$foo->error.':'.$toader->errorFlag.': '.$foo->errorString); }
This returns to the Toader::VCS object.
my $vcs=$toader->getVCS; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); }
No directory specified.
Toader::isaToaderDir->isaToaderDir errored.
The specified directory is not a Toader directory.
The specified output directory is a Toader directory.
Could initialize the Toader::Directory object.
Failed to initialize Toader::Config.
Failed to initiate the path helper.
Failed to initiate VCS integration.
Toader::VCS->usable errored.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-toader at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-toader at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Toader
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Toader
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Toader
CPAN Ratings
http://cpanratings.perl.org/d/Toader
Search CPAN
http://search.cpan.org/dist/Toader/
Copyright 2013 Zane C. Bowers-Hadley
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Toader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Toader
CPAN shell
perl -MCPAN -e shell install Toader
For more information on module installation, please visit the detailed CPAN module installation guide.