icingaweb2-module-director/library/Director/Hook/DeploymentHook.php

29 lines
721 B
PHP
Raw Normal View History

2019-04-24 12:17:31 +02:00
<?php
namespace Icinga\Module\Director\Hook;
use Icinga\Module\Director\Objects\DirectorDeploymentLog;
abstract class DeploymentHook
{
/**
* Please override this method if you want to change the behaviour
* of the deploy (stop it by throwing an exception for some reason)
*
* @param DirectorDeploymentLog $deployment
*/
public function beforeDeploy(DirectorDeploymentLog $deployment)
{
}
/**
* Please override this method if you want to trigger custom actions
* on a successfull dump of the Icinga configuration
*
* @param DirectorDeploymentLog $deployment
*/
public function onSuccessfullDump(DirectorDeploymentLog $deployment)
{
}
}