Skip to content

Commit 40a10d6

Browse files
committed
(GH-57) Add ability to use specific version of Puppet Gem
Previously it was not possible to test on older puppet gems as the gemfile always defaulted to latest. This commit adds the PUPPET_GEM_VERSION environment variable which can be used to set the version of the puppet gem during a bundle. This is the same workflow as regular Puppet modules.
1 parent 04d6ccc commit 40a10d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ group :development do
1313
gem 'rspec', '>= 3.2', :require => false
1414
gem "rubocop", :require => false, :platforms => [:ruby, :x64_mingw]
1515

16-
gem "puppet", :require => false
16+
if ENV['PUPPET_GEM_VERSION']
17+
gem 'puppet', ENV['PUPPET_GEM_VERSION'], :require => false
18+
else
19+
gem 'puppet', :require => false
20+
end
1721

1822
gem "win32-dir", "<= 0.4.9", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
1923
gem "win32-eventlog", "<= 0.6.5", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]

0 commit comments

Comments
 (0)