Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 870c96e

Browse files
committed
Update demo scripts
Signed-off-by: Chris Wahl <github@wahlnetwork.com>
1 parent a4a8526 commit 870c96e

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

helper/demoParallel.ps1

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,38 @@ param (
66
switch ($Demo) {
77
# Demo on home workstation
88
'Home' {
9-
$Splat = @{
10-
File = '..\.build.ps1'
11-
EnvironmentFile = '.\environment\se-2.json'
12-
ConfigFile = '.\config\1-tier-app.json'
13-
IdentityPath = '.\credential\home'
14-
}
9+
Invoke-Builds -Result Result @(
10+
@{
11+
File = '..\.build.ps1';
12+
EnvironmentFile = '.\environment\se-2.json';
13+
ConfigFile = '.\config\2-tier-app.json';
14+
IdentityPath = '.\credential\home'
15+
}
16+
@{
17+
File = '..\.build.ps1';
18+
EnvironmentFile = '.\environment\se-2.json';
19+
ConfigFile = '.\config\3-tier-app.json';
20+
IdentityPath = '.\credential\home'
21+
}
22+
)
1523
}
1624
# Demo on laptop
1725
'Laptop' {
18-
$Splat = @{
19-
File = '..\.build.ps1'
20-
EnvironmentFile = '.\environment\se-2.json'
21-
ConfigFile = '.\config\1-tier-app.json'
22-
IdentityPath = '.\credential\laptop'
23-
}
26+
Invoke-Builds -Result Result @(
27+
@{
28+
File = '..\.build.ps1';
29+
EnvironmentFile = '.\environment\se-2.json';
30+
ConfigFile = '.\config\1-tier-app.json';
31+
IdentityPath = '.\credential\laptop'
32+
}
33+
@{
34+
File = '..\.build.ps1';
35+
EnvironmentFile = '.\environment\se-2.json';
36+
ConfigFile = '.\config\2-tier-app.json';
37+
IdentityPath = '.\credential\laptop'
38+
}
39+
)
2440
}
2541
}
2642

27-
Invoke-Build @Splat -Result Result
28-
2943
return $Result.Tasks | Format-Table Elapsed, Name, Error -AutoSize

helper/demoSerial.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
param (
2-
[ValidateSet('Home', 'Laptop')]
2+
[ValidateSet('Home1','Home2','Laptop')]
33
$Demo
44
)
55

66
switch ($Demo) {
77
# Demo on home workstation
8-
'Home' {
8+
'Home1' {
99
$Splat = @{
1010
File = '..\.build.ps1'
1111
EnvironmentFile = '.\environment\se-2.json'
1212
ConfigFile = '.\config\1-tier-app.json'
1313
IdentityPath = '.\credential\home'
1414
}
1515
}
16+
'Home2' {
17+
$Splat = @{
18+
File = '..\.build.ps1'
19+
EnvironmentFile = '.\environment\se-2.json'
20+
ConfigFile = '.\config\3-tier-app.json'
21+
IdentityPath = '.\credential\home'
22+
}
23+
}
1624
# Demo on laptop
1725
'Laptop' {
1826
$Splat = @{

0 commit comments

Comments
 (0)