Jan Gehring > Rex-0.44.6.1 > Rex::Commands::SCM

Download:
Rex-0.44.6.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source   Latest Release: Rex-0.55.3

NAME ^

Rex::Commands::SCM - Sourcecontrol for Subversion and Git.

DESCRIPTION ^

With this module you can checkout subversion and git repositories.

SYNOPSIS ^

 use Rex::Commands::SCM;
     
 set repository => "myrepo",
      url => "git@foo.bar:myrepo.git";
        
 set repository => "myrepo2",
      url => "https://foo.bar/myrepo",
      type => "subversion",
      username => "myuser",
      password => "mypass";
           
 task "checkout", sub {
    checkout "myrepo";
        
    checkout "myrepo",
       path => "webapp";
           
    checkout "myrepo",
       path => "webapp",
       branch => 1.6;      # branch only for git
           
    checkout "myrepo2";
 };

EXPORTED FUNCTIONS ^

checkout($name, %data);

With this function you can checkout a repository defined with set repository. See Synopsis.

syntax highlighting: