RackMan::SCM - Perform basic operations with any SCM
use RackMan::SCM; chdir "src"; my $scm = RackMan::SCM->new({ type => "git", path => "src" }); $scm->update; my $file = "lipsum.txt"; open my $fh, ">", $file or die $!; print {$fh} "Lorem ipsum sit amet"; close $fh; $scm->add($file); $scm->commit($file, "added $file for great justice");
This module allows to perform basic operations in a generic way, whatever the backend SCM is. It can be seen as a kind of very lightweight VCI. It currently knows the following SCM: CVS, Subversion, Bazaar, Mercurial, Git.
When possible, use the get_scm() method of a RackMan instance to obtain the SCM expected by the user.
get_scm()
RackMan
create and return a new object
update the given path
add the given path
commit the given path with the given message
String, indicates the type of SCM to use: cvs, svn, bzr, hg, git
cvs
svn
bzr
hg
git
String, current working directory
String, prefix printed before the command when in verbose mode
Boolean, whether the command are to be printed before being executed
Sebastien Aperghis-Tramoni (sebastien@aperghis.net)
To install RackMan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RackMan
CPAN shell
perl -MCPAN -e shell install RackMan
For more information on module installation, please visit the detailed CPAN module installation guide.