|
NAMEToader::VCS - Handles the VCS integration for Toader.VERSIONVersion 0.0.1METHODSnewThis intiates the object.One argument is accepted and that is to Toader object to use. my $tvcs=Toader::VCS->new($toader); if ( $tvcs->error ){ warn('Error:'$tvcs->error.':'.$tvcs->errorFlag.': '.$tvcs->errorString); } addThis adds a file or directory.One option is accepted and that what is to be added. $tvcs->add($someFile); if ( $tvcs->error ){ warn('Error:'$tvcs->error.':'.$tvcs->errorFlag.': '.$tvcs->errorString); } deleteThis deletes a file or directory.One option is accepted and that what is to be deleted. $tvcs->delete($someFile); if ( $tvcs->error ){ warn('Error:'$tvcs->error.':'.$tvcs->errorFlag.': '.$tvcs->errorString); } underVCSThis checks if something is under VCS.The returned value is a Perl boolean. my $underVCS=$tvcs->underVCS($someFile); if ( $tvcs->error ){ warn('Error:'$tvcs->error.':'.$tvcs->errorFlag.': '.$tvcs->errorString); } usableChecks if this object is usable or not.$tvcs->usable; ERROR CODES/FLAGS/HANDLINGError handling is provided by Error::Helper.1, noToaderNo Toader object specified.2, notToaderThe object specified is not a Toader object.3, getConfigFailedFailed to read the .toader/config.ini .4, nothingToAddNothing specified to add.5, doesNotExistWhat is to be added does not exist6, notFileOrDirThe specified item is not a file or directory.7, configNotUsableThe configuration is not usable.This most likely means either a config value is missing or it is disabled, such as in the example below. vcs=0 [VCS] addExec=svn add --parents %%%item%%% > /dev/null deleteExec=svn del %%%item%%% > /dev/null underVCSexec=svn info %%%info%%% > /dev/null 8, nonZeroExitOne of the commands to execute returned a non-zero status.9, getVCSfailedToader->getVCS 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::VCS You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 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.
Visit the GSP FreeBSD Man Page Interface. |