Ensure right Puppet version in place for Travis

Keep PUPPET_VERSION for any existing uses, use PUPPET_GEM_VERSION for the
version spec that is supplied via .travis.yml.
This commit is contained in:
Brett Porter
2013-08-02 07:38:03 +10:00
parent a94f5195e0
commit 1f071f1b96
2 changed files with 12 additions and 4 deletions

View File

@@ -2,6 +2,8 @@ source "http://rubygems.org"
if ENV.key?('PUPPET_VERSION')
puppetversion = "= #{ENV['PUPPET_VERSION']}"
elsif ENV.key?('PUPPET_GEM_VERSION')
puppetversion = ENV['PUPPET_GEM_VERSION']
else
puppetversion = ['~> 2.7']
end