mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Added support to add additional checks to package by code
This commit is contained in:
parent
c82bdad7cc
commit
850e8b4d3f
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,12 @@ function New-IcingaCheckPackage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$Check | Add-Member -membertype ScriptMethod -name 'AddCheck' -value {
|
||||||
|
param($check);
|
||||||
|
|
||||||
|
$this.checks += $check;
|
||||||
|
}
|
||||||
|
|
||||||
$Check | Add-Member -membertype ScriptMethod -name 'Compile' -value {
|
$Check | Add-Member -membertype ScriptMethod -name 'Compile' -value {
|
||||||
param([bool]$Silent);
|
param([bool]$Silent);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue