mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/JiboExperiments.git
synced 2026-06-16 19:16:29 +00:00
Stub in framework for new .net Open Jibo cloud
This commit is contained in:
23
OpenJibo/scripts/bootstrap/Generate-JiboDnsOverrides.ps1
Normal file
23
OpenJibo/scripts/bootstrap/Generate-JiboDnsOverrides.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
param(
|
||||
[string]$TargetIp,
|
||||
[string[]]$HostNames = @(
|
||||
"api.jibo.com",
|
||||
"api-socket.jibo.com",
|
||||
"neo-hub.jibo.com",
|
||||
"neohub.jibo.com"
|
||||
)
|
||||
)
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($TargetIp)) {
|
||||
throw "TargetIp is required."
|
||||
}
|
||||
|
||||
$entries = foreach ($host in $HostNames) {
|
||||
[pscustomobject]@{
|
||||
Host = $host
|
||||
TargetIp = $TargetIp
|
||||
HostsFileLine = "$TargetIp`t$host"
|
||||
}
|
||||
}
|
||||
|
||||
$entries | Format-Table -AutoSize
|
||||
Reference in New Issue
Block a user