From 09df4b4961da424319d5208740aebbc9009eaa7b Mon Sep 17 00:00:00 2001 From: Nate McCurdy Date: Fri, 15 Dec 2017 12:48:47 -0600 Subject: [PATCH] Use the puppet-agent ruby in config_version.rb Prior to this, the config_version.rb script (used for r10k) attempted to use the system ruby to parse the script. This caused problems on Puppet masters that don't have `ruby` in PATH. This fixes that by hardcoding the puppet-agent's ruby in the shebang. --- scripts/config_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config_version.rb b/scripts/config_version.rb index 5aade34..9ccd8d5 100755 --- a/scripts/config_version.rb +++ b/scripts/config_version.rb @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby +#!/opt/puppetlabs/puppet/bin/ruby begin require 'rugged' require 'socket'