From d936f4b9da4d50bf87e2516e2c77cf0f0e1b1525 Mon Sep 17 00:00:00 2001 From: Florent Poinsaut Date: Thu, 7 Jan 2021 23:11:55 +0100 Subject: [PATCH] Add a shim for the r10k CLI --- bin/r10k | 5 +++++ bin/r10k.ps1 | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100755 bin/r10k create mode 100644 bin/r10k.ps1 diff --git a/bin/r10k b/bin/r10k new file mode 100755 index 00000000..1983962c --- /dev/null +++ b/bin/r10k @@ -0,0 +1,5 @@ +#! /bin/sh + +cd "$(dirname "$0")/.." || exit 1 + +docker-compose exec puppet r10k "$@" diff --git a/bin/r10k.ps1 b/bin/r10k.ps1 new file mode 100644 index 00000000..5a691d80 --- /dev/null +++ b/bin/r10k.ps1 @@ -0,0 +1,9 @@ +[CmdletBinding()] +param ( + [parameter(Mandatory=$False,Position=0,ValueFromRemainingArguments=$True)] + [Object[]] $Arguments +) + +Push-Location (Join-Path -Path $PSScriptRoot -ChildPath '..') | Out-Null + +& docker-compose exec puppet r10k $Arguments