refactor ConfigLoader to CfgDeploy
This commit is contained in:
@@ -11,11 +11,11 @@ if (-not $PSScriptRoot) {
|
||||
$PSScriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
}
|
||||
|
||||
$configLoader = Join-Path -Path $PSScriptRoot -ChildPath 'ConfigLoader.ps1'
|
||||
if (-not (Test-Path -LiteralPath $configLoader)) {
|
||||
throw "Missing ConfigLoader.ps1 in $PSScriptRoot"
|
||||
$cfgDeploy = Join-Path -Path $PSScriptRoot -ChildPath 'CfgDeploy.ps1'
|
||||
if (-not (Test-Path -LiteralPath $cfgDeploy)) {
|
||||
throw "Missing CfgDeploy.ps1 in $PSScriptRoot"
|
||||
}
|
||||
. $configLoader
|
||||
. $cfgDeploy
|
||||
|
||||
$structDir = Get-StructDirectory
|
||||
if (-not (Test-Path -LiteralPath $structDir -PathType Container)) {
|
||||
|
||||
Reference in New Issue
Block a user