Overview

Namespaces

  • GAubry
    • ErrorHandler
    • Helpers
    • Logger
    • Shell
  • Himedia
    • Padocc
      • DB
      • Minifier
      • Numbering
      • Properties
      • Task
        • Base
        • Extended
  • None
  • Psr
    • Log

Classes

  • AttributeProperties
  • Deployment
  • DeploymentStatus
  • DIContainer
  • Padocc
  • Task

Interfaces

  • DIContainerInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class Padocc

API

Namespace: Himedia\Padocc
Package: Himedia\Padocc
Located at Himedia/Padocc/Padocc.php
Methods summary
public
# __construct( array $aConfig )
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

$sExecId
mixed
$sExecId

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
# getQueueAndRunning( )
public
# getLatestDeployments( mixed $sProjectName, mixed $sEnvName )
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
# dequeue( )
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.
Properties summary
private array $aConfig
#
private mixed $oDeploymentMapper
#
Platform for Automatized Deployments with pOwerful Concise Configuration API documentation generated by ApiGen 2.8.0