Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Rex::Commands::SCM(3) User Contributed Perl DocumentationRex::Commands::SCM(3)

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

DESCRIPTION
       With this module	you can	checkout subversion and	git repositories.

       Version <= 1.0: All these functions will	not be reported.

       All these functions are not idempotent.

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

	  # For	Git only, will replay any local	commits	on top of pulled commits
	  checkout "myrepo",
	    path   => "script_dir",
	    rebase => TRUE;

	  checkout "myrepo2";
	};

EXPORTED FUNCTIONS
   checkout($name, %data);
       With this function you can checkout a repository	defined	with set
       repository. See Synopsis.

perl v5.24.1			  2016-07-16		 Rex::Commands::SCM(3)

NAME | DESCRIPTION | SYNOPSIS | EXPORTED FUNCTIONS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Rex::Commands::SCM&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help