Initial build: engine, run scripts, WinSCP setup, example configs

This commit is contained in:
2026-06-29 20:34:33 -05:00
parent 241acd40d6
commit ac4c6d823c
9 changed files with 416 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
# Run uploads for ALL entities under the Entities\ folder
$scriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
$entitiesDir = Join-Path $scriptRoot "Entities"
if (-not (Test-Path $entitiesDir)) {
Write-Host "ERROR: Entities\ folder not found." -ForegroundColor Red
exit 1
}
$entities = Get-ChildItem -Path $entitiesDir -Directory |
Where-Object { Test-Path (Join-Path $_.FullName "entity.json") }
if ($entities.Count -eq 0) {
Write-Host "No entity folders with entity.json found under Entities\." -ForegroundColor Yellow
exit 0
}
Write-Host "Found $($entities.Count) entity/entities to process."
$anyFail = $false
foreach ($entity in $entities) {
& powershell.exe -ExecutionPolicy Bypass -File (Join-Path $scriptRoot "engine.ps1") -EntityDir $entity.FullName
if ($LASTEXITCODE -ne 0) { $anyFail = $true }
}
Write-Host ""
if (-not $anyFail) {
Write-Host "All entities complete." -ForegroundColor Green
} else {
Write-Host "One or more entities had failures — check output above." -ForegroundColor Yellow
}