Skip to content

Commit

Permalink
Fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
webtonize committed Dec 10, 2023
1 parent 2245532 commit 61d7a51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/PSRule.Rules.AzureDevOps/Functions/Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ Function Connect-AzDevOps {
}
$script:connection = $connection
}
if(($MyInvocation.PSCommandPath -match '.psm1$') -or ($MyInvocation.PSCommandPath -match '.psd1')) {
Export-ModuleMember -Function Connect-AzDevOps
}



# End of Function Connect-AzDevOps

Expand All @@ -104,9 +99,6 @@ Function Disconnect-AzDevOps {
$script:connection = ""
$script:connection = $null
}
if(($MyInvocation.PSCommandPath -match '.psm1$') -or ($MyInvocation.PSCommandPath -match '.psd1')) {
Export-ModuleMember -Function Disconnect-AzDevOps
}
# End of Function Disconnect-AzDevOps

<#
Expand Down Expand Up @@ -144,7 +136,4 @@ function Get-AzDevOpsProjects {
$projects = $response.value
return @($projects)
}
if(($MyInvocation.PSCommandPath -match '.psm1$') -or ($MyInvocation.PSCommandPath -match '.psd1')) {
Export-ModuleMember -Function Get-AzDevOpsProjects
}
# End of Function Get-AzDevOpsProjects
4 changes: 4 additions & 0 deletions src/PSRule.Rules.AzureDevOps/PSRule.Rules.AzureDevOps.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ Function Export-AzDevOpsOrganizationRuleData {
}
Export-ModuleMember -Function Export-AzDevOpsOrganizationRuleData
# End of Function Export-AzDevOpsOrganizationRuleData

Export-ModuleMember -Function Get-AzDevOpsProjects
Export-ModuleMember -Function Connect-AzDevOps
Export-ModuleMember -Function Disconnect-AzDevOps

0 comments on commit 61d7a51

Please sign in to comment.