-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93a882f
commit 4a4808e
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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) | ||
{ | ||
} | ||
} |