DgxInstallUtilities.psm1
<#
=========================================================================== Organization: Health Catalyst Filename: DgxInstallUtilities.psm1 ------------------------------------------------------------------------- Module Name: DgxInstallUtilities =========================================================================== #> #Get public and private function definition files. $public = @( Get-ChildItem -Path $PSScriptRoot\public\*.ps1 -ErrorAction SilentlyContinue ) $private = @( Get-ChildItem -Path $PSScriptRoot\private\*.ps1 -ErrorAction SilentlyContinue ) #Dot source the files Foreach ($import in @($public + $private)) { Try { . $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } Export-ModuleMember -Function $public.Basename |