Creating Module
This commit is contained in:
20
Private/Test-ConfigurationDataItemWildcard.ps1
Normal file
20
Private/Test-ConfigurationDataItemWildcard.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
function Test-ConfigurationDataItemWildcard {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[AllowNull()]
|
||||
$Item,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[String[]]
|
||||
$KeyNames
|
||||
)
|
||||
|
||||
if($KeyNames.Count -ne 1){
|
||||
return $false
|
||||
}
|
||||
|
||||
if(-not (Test-ConfigurationDataItemContainsKey -Item $Item -KeyName $KeyNames[0])){
|
||||
return $false
|
||||
}
|
||||
|
||||
return (Get-ConfigurationDataItemValue -Item $Item -KeyName $KeyNames[0]) -eq "*"
|
||||
}
|
||||
Reference in New Issue
Block a user