2022-08-24 03:57:30 -04:00
|
|
|
<#
|
2021-08-17 04:25:37 -04:00
|
|
|
### Note ###
|
2021-08-06 09:44:31 -04:00
|
|
|
|
2021-08-17 04:25:37 -04:00
|
|
|
This file is shipping plain with Icinga for Windows for each version.
|
|
|
|
|
Once the module is loaded, this content will entirely be replaced with
|
|
|
|
|
all modules and components shipped by the Icinga PowerShell Framework.
|
2021-08-06 09:44:31 -04:00
|
|
|
|
2021-08-17 04:25:37 -04:00
|
|
|
Manually enabling the feature is no longer required.
|
2021-08-06 09:44:31 -04:00
|
|
|
#>
|
|
|
|
|
|
2022-05-24 07:11:25 -04:00
|
|
|
# Ensures that VS Code is not generating the cache file
|
|
|
|
|
if ($null -ne $env:TERM_PROGRAM) {
|
|
|
|
|
Write-IcingaFrameworkCodeCache -DeveloperMode;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-17 04:25:37 -04:00
|
|
|
Write-IcingaFrameworkCodeCache;
|
2021-08-06 12:12:27 -04:00
|
|
|
|
|
|
|
|
Import-Module icinga-powershell-framework -Global -Force;
|
|
|
|
|
Import-Module icinga-powershell-framework -Force;
|
2022-05-24 07:11:25 -04:00
|
|
|
|
|
|
|
|
if ($null -ne $env:TERM_PROGRAM -Or $Global:Icinga.Protected.DeveloperMode) {
|
|
|
|
|
Copy-IcingaFrameworkCacheTemplate;
|
|
|
|
|
}
|