Cns.DataQuality.psm1
<#
.Synopsis Modulescript for maintaining DQ Monitor resources through the DQ Monitor API. #> <# (c) 2020 CNS International #> If($Verbose) { $VerbosePreference = "Continue" } $ErrorActionPreference = "Stop" $WarningPreference = "Continue" $ProgressPreference = "SilentlyContinue" # Script Variables $DqConnectionSettings = $Null $DqContext = $Null # Path variables $SharedTypesPath = Join-Path -Path $PSScriptRoot -ChildPath "Shared" $FunctionsPath = Join-Path -Path $PSScriptRoot -ChildPath "Functions" $PrivateFunctionsPath = Join-Path -Path $PSScriptRoot -ChildPath "PrivateFunctions" # Import shared resources $Imports = Get-ChildItem -Path $SharedTypesPath | Where-Object { $_.Name -like "*.ps1" } ForEach($Import in $Imports) { .$Import.FullName } # Import private functions $Imports = Get-ChildItem -Path $PrivateFunctionsPath | Where-Object { $_.Name -like "*.ps1" } ForEach($Import in $Imports) { .$Import.FullName } # Import public functions $Imports = Get-ChildItem -Path $FunctionsPath | Where-Object { $_.Name -like "*.ps1" } ForEach($Import in $Imports) { .$Import.FullName } |