Documentation

CloneAction
in package

Table of Contents

$logger  : LoggerInterface|null
$pretend  : bool
__construct()  : mixed
clone()  : ExecutionResult
Clone a remote repo (primitive)

Properties

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

Return values
ExecutionResult

Search results