lib/core/icingaagent/writers/Write-IcingaAgentObjectList.psm1
function Write-IcingaAgentObjectList() { param( [string]$Path ); if ([string]::IsNullOrEmpty($Path)) { throw 'Please specify a path to write the Icinga objects to'; } $ObjectList = Get-IcingaAgentObjectList; Set-Content -Path $Path -Value $ObjectList; } |