PowerShell_Scripts/ansible/Pull-ViaAnsible.ps1

11 lines
277 B
PowerShell

[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)