CloneAction
in package
Table of Contents
- $logger : LoggerInterface|null
- $pretend : bool
- __construct() : mixed
- clone() : ExecutionResult
- Clone a remote repo (primitive)
Properties
$logger
private
LoggerInterface|null
$logger
$pretend
private
bool
$pretend
= false
Methods
__construct()
public
__construct(LoggerInterface|null $logger[, bool $pretend = false ]) : mixed
Parameters
- $logger : LoggerInterface|null
- $pretend : bool = false
Return values
mixed —clone()
Clone a remote repo (primitive)
public
clone(string $uri, string $localDir[, string $branch = '' ]) : ExecutionResult
Parameters
- $uri : string
-
The remote repo to clone
- $localDir : string
-
The local target dir
- $branch : string = ''
-
Optional: Checkout a specific branch