1Rex::Commands::SCM(3) User Contributed Perl DocumentationRex::Commands::SCM(3)
2
3
4

NAME

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

DESCRIPTION

9       With this module you can checkout subversion and git repositories.
10
11       Version <= 1.0: All these functions will not be reported.
12
13       All these functions are not idempotent.
14

SYNOPSIS

16        use Rex::Commands::SCM;
17
18        set repository => "myrepo",
19           url => 'git@foo.bar:myrepo.git';
20
21        set repository => "myrepo2",
22           url      => "https://foo.bar/myrepo",
23           type     => "subversion",
24           username => "myuser",
25           password => "mypass";
26
27        task "checkout", sub {
28          checkout "myrepo";
29
30          checkout "myrepo",
31            path => "webapp";
32
33          checkout "myrepo",
34            path   => "webapp",
35            branch => 1.6;    # branch only for git
36
37          # For Git only, will replay any local commits on top of pulled commits
38          checkout "myrepo",
39            path   => "script_dir",
40            rebase => TRUE;
41
42          checkout "myrepo2";
43        };
44

EXPORTED FUNCTIONS

46   checkout($name, %data);
47       With this function you can checkout a repository defined with set
48       repository. See Synopsis.
49
50
51
52perl v5.34.0                      2022-01-19             Rex::Commands::SCM(3)
Impressum