summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile39
1 files changed, 15 insertions, 24 deletions
diff --git a/Gemfile b/Gemfile
index ced190e..e490bc9 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,12 +1,14 @@
+#This file is generated by ModuleSync, do not edit.
+
source ENV['GEM_SOURCE'] || "https://rubygems.org"
-def location_for(place, fake_version = nil)
+def location_for(place, version = nil)
if place =~ /^(git[:@][^#]*)#(.*)/
- [fake_version, { :git => $1, :branch => $2, :require => false }].compact
+ [version, { :git => $1, :branch => $2, :require => false}].compact
elsif place =~ /^file:\/\/(.*)/
- ['>= 0', { :path => File.expand_path($1), :require => false }]
+ ['>= 0', { :path => File.expand_path($1), :require => false}]
else
- [place, { :require => false }]
+ [place, version, { :require => false}].compact
end
end
@@ -20,29 +22,18 @@ group :development, :unit_tests do
gem 'simplecov', :require => false
end
group :system_tests do
+ gem 'beaker-rspec', *location_for(ENV['BEAKER_RSPEC_VERSION'] || '>= 3.4')
+ gem 'beaker', *location_for(ENV['BEAKER_VERSION'])
+ gem 'serverspec', :require => false
gem 'beaker-puppet_install_helper', :require => false
- if beaker_version = ENV['BEAKER_VERSION']
- gem 'beaker', *location_for(beaker_version)
- end
- if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
- gem 'beaker-rspec', *location_for(beaker_rspec_version)
- else
- gem 'beaker-rspec', :require => false
- end
gem 'master_manipulator', :require => false
- gem 'serverspec', :require => false
+ gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
end
-if facterversion = ENV['FACTER_GEM_VERSION']
- gem 'facter', facterversion, :require => false
-else
- gem 'facter', :require => false
-end
+gem 'facter', *location_for(ENV['FACTER_GEM_VERSION'])
+gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
-if puppetversion = ENV['PUPPET_GEM_VERSION']
- gem 'puppet', puppetversion, :require => false
-else
- gem 'puppet', :require => false
-end
-# vim:ft=ruby
+if File.exists? "#{__FILE__}.local"
+ eval(File.read("#{__FILE__}.local"), binding)
+end