svn.php
Gestion du téléporteur HTTP.
Tags
Table of Contents
Constants
- _SVN_COMMAND = 'svn'
Functions
- teleporter_svn_dist() : bool
- Téléporter et déballer un composant SVN
- teleporter_svn_read() : array<string|int, mixed>|string
- Lire source et révision d'un répertoire SVN et reconstruire la ligne de commande
- teleporter_svn_tester() : bool
- Tester si la commande 'svn' est disponible
Constants
_SVN_COMMAND
public
mixed
_SVN_COMMAND
= 'svn'
Functions
teleporter_svn_dist()
Téléporter et déballer un composant SVN
teleporter_svn_dist(string $methode, string $source, string $dest[, array<string|int, mixed> $options = [] ]) : bool
Déployer un repository SVN depuis une source et une révision données
Parameters
- $methode : string
-
Méthode de téléportation : http|git|svn|...
- $source : string
-
URL de la source SVN
- $dest : string
-
Chemin du répertoire de destination
- $options : array<string|int, mixed> = []
-
Tableau d'options. Index possibles :
- revision => 'nnn'
- literal => --ignore-externals
Tags
Return values
bool —True si l'opération réussie, false sinon.
teleporter_svn_read()
Lire source et révision d'un répertoire SVN et reconstruire la ligne de commande
teleporter_svn_read(string $dest[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>|string
Parameters
- $dest : string
-
Chemin du répertoire SVN
- $options : array<string|int, mixed> = []
-
Options
Tags
Return values
array<string|int, mixed>|string —Chaîne vide si pas SVN ou erreur de lecture, Tableau sinon avec les index :
- source : URL de la source SVN
- revision : numéro de la révision SVN
- dest : Chemin du répertoire
teleporter_svn_tester()
Tester si la commande 'svn' est disponible
teleporter_svn_tester() : bool
Return values
bool —true si on peut utiliser la commande svn