-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathNew-ALZDirectoryEnvironment.ps1
More file actions
21 lines (20 loc) · 1.04 KB
/
New-ALZDirectoryEnvironment.ps1
File metadata and controls
21 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function New-ALZDirectoryEnvironment {
[CmdletBinding(SupportsShouldProcess = $true)]
param (
[Parameter(Mandatory = $true)]
[Alias("Output")]
[Alias("OutputDirectory")]
[Alias("O")]
[string] $alzEnvironmentDestination
)
# Create destination file structure
$gitHubPipeline = Join-Path $alzEnvironmentDestination ".github" "workflows"
$config = Join-Path $alzEnvironmentDestination "config"
$configModules = Join-Path $alzEnvironmentDestination "config" "custom-modules"
$upstream = Join-Path $alzEnvironmentDestination "upstream-releases"
New-Item -ItemType Directory -Path $alzEnvironmentDestination -Force | Out-String | Write-Verbose
New-Item -ItemType Directory -Path $gitHubPipeline -Force | Out-String | Write-Verbose
New-Item -ItemType Directory -Path $config -Force | Out-String | Write-Verbose
New-Item -ItemType Directory -Path $upstream -Force | Out-String | Write-Verbose
New-Item -ItemType Directory -Path $configModules -Force | Out-String | Write-Verbose
}