ALOps.ExternalDeployer.psm1

Get-Item $PSScriptRoot | Get-ChildItem -Recurse -Filter '*.ps1' |  
                        Where-Object FullName -NotLike '*Tests.ps1' |  
                        Where-Object FullName -NotLike '*_config.ps1' | 
                        Where-Object FullName -NotLike '*_dependencies.ps1' | 
                        Where-Object Name -NotLike '_*.ps1' | 
                        Sort-Object Name | ForEach-Object {
    Write-Verbose "Loading $($_.Name)"
    . $_.fullname
}

if (Test-Path $PSScriptRoot\_config.ps1) {
    . $PSScriptRoot\_config.ps1
}

Export-ModuleMember -Function * -Variable *

if (Test-Path $PSScriptRoot\_dependencies.ps1) {
    . $PSScriptRoot\_dependencies.ps1
}

Write-Host "Use [Install-ALOpsExternalDeployer] to install [ALOps External Deployer] service." -ForegroundColor Green