Methods summary
public
|
|
public
array
|
#
getEnvAndExtParameters( string $sXmlProject )
Return environments and external properties of specified project.
Return environments and external properties of specified project.
Example: array( 'dev' => array(), 'qa' => array( 'ref' => "Branch or
tag to deploy", … ) )
Parameters
- $sXmlProject
string $sXmlProject XML project path or XML data
Returns
array environments and external properties of specified project.
|
public
array
|
#
getStatus( mixed $sExecId )
Return triplet containing DB record of specified exec_id, content of
execution log, and errors.
Return triplet containing DB record of specified exec_id, content of
execution log, and errors.
Parameters
Returns
array triplet containing DB record of specified exec_id, content of execution log, and
errors.
Throws
RuntimeException if info log or error log not found
|
public
|
|
public
|
|
public
|
#
runWOSupervisor( string $sXmlProjectPath, string $sEnvName, string $sExecutionID, array $aExternalProperties, string $sRollbackID )
Exécute le déploiement sans supervisor et sans trace en DB.
Exécute le déploiement sans supervisor et sans trace en DB.
Parameters
- $sXmlProjectPath
string $sXmlProjectPath chemin vers le XML de configuration du projet
- $sEnvName
string $sEnvName
- $sExecutionID
string $sExecutionID au format YYYYMMDDHHMMSS_xxxxx, où x est un nombre aléatoire,
par exemple '20111026142342_07502'
- $aExternalProperties
array $aExternalProperties tableau associatif nom/valeur des propriétés externes.
- $sRollbackID
string $sRollbackID identifiant de déploiement sur lequel effectuer un rollback, par
exemple '20111026142342_07502'
|
public
|
#
enqueue( mixed $sXmlProjectPath, mixed $sEnvName, array $aExternalProperties )
|
public
|
|
public
string
|
#
run( string $sXmlProjectPath, string $sEnvName, string $sExecId, array $aExternalProperties, string $sRollbackID )
Exécute le déploiement avec supervisor et avec trace en DB.
Exécute le déploiement avec supervisor et avec trace en DB.
Parameters
- $sXmlProjectPath
string $sXmlProjectPath chemin vers le XML de configuration du projet
- $sEnvName
string $sEnvName
- $sExecId
string $sExecId au format YYYYMMDDHHMMSS_xxxxx, où x est un nombre aléatoire, par
exemple '20111026142342_07502'. Si vide, en génère un.
- $aExternalProperties
array $aExternalProperties tableau associatif nom/valeur des propriétés externes.
- $sRollbackID
string $sRollbackID identifiant de déploiement sur lequel effectuer un rollback, par
exemple '20111026142342_07502'
Returns
string $sExecutionID
Throws
RuntimeException if Supervisor log result are unexpected.
|