summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 50df2ee..197cc6b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -24,7 +24,16 @@ group :development, :test do
gem 'rspec-puppet', :require => false
end
-if puppetversion = ENV['PUPPET_GEM_VERSION']
+facterversion = ENV['GEM_FACTER_VERSION']
+if facterversion
+ gem 'facter', *location_for(facterversion)
+else
+ gem 'facter', :require => false
+end
+
+ENV['GEM_PUPPET_VERSION'] ||= ENV['PUPPET_GEM_VERSION']
+puppetversion = ENV['GEM_PUPPET_VERSION']
+if puppetversion
gem 'puppet', *location_for(puppetversion)
else
gem 'puppet', :require => false