From 356d2823e5ef4e29e76575dd7c139816f0f036c7 Mon Sep 17 00:00:00 2001 From: dsisnero Date: Mon, 14 Dec 2020 09:50:04 -0700 Subject: [PATCH] puppet-bolt: Set GEM_PATH (#1665) Like GEM_HOME, GEM_PATH needs to be reset to use the puppet-bolt gems. TODO (can we have multiple pre_install keys?) We also should create a $dir\\gem.bat file that resets GEM_HOME and GEM_PATH --- bucket/puppet-bolt.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/puppet-bolt.json b/bucket/puppet-bolt.json index 7087f3e2d2..1f4a60e7a6 100644 --- a/bucket/puppet-bolt.json +++ b/bucket/puppet-bolt.json @@ -10,7 +10,7 @@ } }, "extract_dir": "Puppet Labs\\Bolt", - "pre_install": "Set-Content \"$dir\\bolt.bat\" '@ECHO OFF', 'SETLOCAL', 'SET GEM_HOME=', '%~dp0bin\\bolt.bat %*' -Encoding Ascii", + "pre_install": "Set-Content \"$dir\\bolt.bat\" '@ECHO OFF', 'SETLOCAL', 'SET GEM_HOME=','SET GEM_PATH=', '%~dp0bin\\bolt.bat %*' -Encoding Ascii", "post_install": [ "if (Test-Path \"$dir\\share\\install-tarballs\\ruby*.tgz\") {", " info 'Extract tarball of gems...'",