File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,16 @@ gems = {}
6060
6161gems [ 'puppet' ] = location_for ( puppet_version )
6262
63- #bolt_version = ENV.fetch('BOLT_GEM_VERSION', nil)
63+ bolt_version = ENV . fetch ( 'BOLT_GEM_VERSION' , nil )
64+ # output value of bolt_version for debugging purposes
65+ puts "BOLT_GEM_VERSION is set to: #{ bolt_version } " unless bolt_version . nil?
6466
6567# If PUPPET_FORGE_TOKEN is set then use authenticated source for both puppet and facter, since facter is a transitive dependency of puppet
6668# Otherwise, do as before and use location_for to fetch gems from the default source
6769if !ENV [ 'PUPPET_FORGE_TOKEN' ] . to_s . empty?
68- # gems['bolt'] = [bolt_version || '~> 5.0', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }]
70+ gems [ 'bolt' ] = [ bolt_version || '~> 5.0' , { require : false , source : 'https://rubygems-puppetcore.puppet.com' } ]
6971else
70- # gems['bolt'] = location_for(bolt_version)
72+ gems [ 'bolt' ] = location_for ( bolt_version )
7173end
7274
7375# If facter or hiera versions have been specified via the environment
You can’t perform that action at this time.
0 commit comments