NAME

Test::Inline::IO::File::VCS - Test::Inline IO Handler for Version Control Systems

DESCRIPTION

This class implements a Test::Inline 2 IO Handler for outputing test files into trees of directories checkout out from a version control system.

This class is intended for release with Test::Inline 2.100, and if you are seeing this it probably got accidentally rolled up by the author's automated release dist builder script.

Please ignore this class for the time being.

METHODS

new $path

The new constructor takes a root path of the checkout module and creates an IO handler for that location.

If not passed a param, it will assume the current directory as the root of the module. If set to a subdirectory, this should not be fatal, as long as the directory is added to the repository.

The constructor will automatically detect the type of version control system in use, and should act accordindly.

Initially, this class support CVS and Subversion.

Returns a new Test::Inline::IO::File::VCS, or undef if it cannot determine the VCS type.

VCS

The VCS accessor returns the code for the version control system.

Currently, this is 'CVS' for CVS, or 'SVN' for Subversion.

write $file, $content

The write method works as for the parent Test::Inline::IO::File class, except that if the file does not yet exist, it will be additionally added to the version control system.

TO DO

- Support additional Version Control Systems

SUPPORT

See the main SUPPORT section.

AUTHOR

Adam Kennedy <cpan@ali.as>, http://ali.as/

COPYRIGHT

Copyright (c) 2004 - 2005 Phase N Austalia. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.