function Copy-AssetLocally([PSObject] $DeploymentParameters)
{
Show-ConfirmationDeployAsset -DeploymentParameters $DeploymentParameters
if (-not (Read-Confirmation)) { return; }
Write-Host "Copy Asset to directory." -ForegroundColor $InfoColor
New-Item -Path $DeploymentParameters.TargetDirectory -ItemType Directory -ErrorAction Ignore
Copy-Directory `
-SourceDirectory $DeploymentParameters.SourceDirectory `
-TargetDirectory $DeploymentParameters.TargetDirectory
Write-Host "Done!" -ForegroundColor $InfoColor
}
{
Show-ConfirmationDeployAsset -DeploymentParameters $DeploymentParameters
if (-not (Read-Confirmation)) { return; }
Write-Host "Copy Asset to directory." -ForegroundColor $InfoColor
New-Item -Path $DeploymentParameters.TargetDirectory -ItemType Directory -ErrorAction Ignore
Copy-Directory `
-SourceDirectory $DeploymentParameters.SourceDirectory `
-TargetDirectory $DeploymentParameters.TargetDirectory
Write-Host "Done!" -ForegroundColor $InfoColor
}