Rex Module for Git/SVN Control
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
lib/Rex
.gitignore
MANIFEST.SKIP
Makefile.PL
README.pod

README.pod

Rex::SCM

This is a Rex Module for SCM access (like git, svn, ...).

Example

Rexfile:

use Rex::SCM;
use Rex::Commands::Rsync;

group static => 'static01', 'static02';

repository 'static', url => 'git@my-git-server.local',
                       type => 'git';

task 'checkout', sub {
   checkout 'static', 'checked-out-branch',
                 branch => 'stable';
};
   
task 'sync', group => 'static', sub {
   sync 'static/*', '/var/www/html';
};
 
task 'deploy', sub {
    do_task [ qw/checkout sync/ ];
};