PowerShell_Scripts/ansible/Pull-ViaAnsible.ps1

11 lines
277 B
PowerShell
Raw Normal View History

[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)
2020-11-01 04:55:38 +00:00