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.
This commit is contained in:
Nate McCurdy 2017-12-15 12:48:47 -06:00
parent c221d72929
commit 09df4b4961

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ruby #!/opt/puppetlabs/puppet/bin/ruby
begin begin
require 'rugged' require 'rugged'
require 'socket' require 'socket'