diff --git a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 index 6570e89..aa857f9 100644 --- a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 @@ -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 { param([bool]$Silent);