diff --git a/ansible/Pull-ViaAnsible.ps1 b/ansible/Pull-ViaAnsible.ps1 index 8b53770..df5de70 100644 --- a/ansible/Pull-ViaAnsible.ps1 +++ b/ansible/Pull-ViaAnsible.ps1 @@ -1,3 +1,10 @@ -[CmdletBinding()]param([string[]]$Remotes = 'All') +[CmdletBinding()]param( + [Parameter(mandatory)] + [string]$RemotePath, + [switch]$NotOneLine, + [string[]]$Remotes = 'All' +) + +Invoke-ViaAnsible -Command "cd $RemotePath",'Write-Output "$PWD `t"','git pull' -Remotes:$($Remotes.ToLower()) -OneLine:$(-not $NotOneLine) + -Invoke-ViaAnsible -Command "git pull" -Remotes:$($Remotes.ToLower())