From e9af489213b368a393792a4ca43290e8b860b615 Mon Sep 17 00:00:00 2001 From: JJ Fullmer Date: Thu, 22 Aug 2024 12:34:33 -0600 Subject: [PATCH] Release Commit of Major Changes (some changes in other commits) - Handled Auto add aliases on build #9 so added aliases are available to users. - Implemented Add foghost name tab completion #8 - Added github actions for testing build and releasing versions - Fixed issue with getting fog inventory in 1.6 - Implemented #16 for getting and setting fog global settings in fog 1.6 - Implemented #14 for getting the fog version - Implemented #13 for invoking wol task for a host - Added basic pipeline functionality for foghost objects in all applicable functions. - Made it possible to send multiple specified snapins in a single start-fogsnapin call - Added tab completion of server specific host names and snapin names in various functions like get-foghost, start-fogsnapin. set-fogsnapins, remove-usbmac - removed advanced function begin/end blocks where they weren't being used as such, kept things in process block - implemented Add https option to fog server settings #15 by making it so you can put http://fogserver or https://fogserver or fogserver as the fogserver property in settings to implement that change with minimal issues with existing setting configs. Added an enable-FogApiHTTPS funcction as well as a disable to easily enable that. - Implemented Add function for attempting to set windows machine to boot to pxe from within windows #17 --- build.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 3b4ccec..3ebc338 100644 --- a/build.ps1 +++ b/build.ps1 @@ -407,6 +407,8 @@ $docsPth = "$PSScriptRoot\docs" # $ses | Remove-PsSession; $moduleFile = "$buildPth\$moduleName.psm1"; +New-Item $moduleFile -Force | Out-Null; + $PublicFunctions = Get-ChildItem "$modulePath\Public" -Recurse -Filter '*.ps1' -EA 0; $Classes = Get-ChildItem "$modulePath\Classes" -Recurse -Filter '*.ps1' -EA 0; $PrivateFunctions = Get-ChildItem "$modulePath\Private" -Recurse -Filter '*.ps1' -EA 0; @@ -420,7 +422,6 @@ if (Test-Path $buildPth) { } mkdir $buildPth | Out-Null; -New-Item $moduleFile -Force | Out-Null; Copy-Item "$docsPth\en-us" "$buildPth\en-us" -Recurse -Exclude '*.md'; Add-Content -Path $moduleFile -Value "`$PSModuleRoot = `$PSScriptRoot"; if ((Get-ChildItem "$modulePath\lib").count -gt 0) {