|
NAMEToader - A CMS meant to be integrated with a versioning system.VERSIONVersion 1.2.1SYNOPSISuse Toader; my $foo = Toader->new({dir=>$toaderDir}); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); } METHODSnewargs hash refdir This is the directory to intiate in. This is required and needs to be a Toader directory. outputdir 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); } getConfigThis 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); } getConfigObjThis 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); } getDirObjThis 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); } getOutputDirThis 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"; } getPathHelperThis 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); } getRootDirThis 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); } setOutputDirThis sets the output directory.$foo->setOutputDir( $dir ); if ( $foo->error ){ warn('Error:'.$foo->error.':'.$toader->errorFlag.': '.$foo->errorString); } getVCSThis returns to the Toader::VCS object.my $vcs=$toader->getVCS; if ( $toader->error ){ warn('Error:'.$toader->error.':'.$toader->errorFlag.': '.$toader->errorString); } ERROR CODES1, noDirSpecifiedNo directory specified.2, isaToaderDirErrorToader::isaToaderDir->isaToaderDir errored.3, notAtoaderDirThe specified directory is not a Toader directory.4, outputIsAtoaderDirThe specified output directory is a Toader directory.5, DirectoryInitErrorCould initialize the Toader::Directory object.6, ConfigInitErrorFailed to initialize Toader::Config.7, PathHerlerInitErrorFailed to initiate the path helper.8, VCSinitErrorFailed to initiate VCS integration.9, VCSusableErrorToader::VCS->usable errored.AUTHORZane C. Bowers-Hadley, "<vvelox at vvelox.net>"BUGSPlease 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.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Toader You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 2013 Zane C. Bowers-HadleyThis 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.
Visit the GSP FreeBSD Man Page Interface. |