module-puppetlabs-apt/Gemfile

32 lines
744 B
Text
Raw Normal View History

2014-06-26 02:23:12 +02:00
source ENV['GEM_SOURCE'] || "https://rubygems.org"
def location_for(place, fake_version = nil)
if place =~ /^(git:[^#]*)#(.*)/
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end
group :development, :unit_tests do
2015-05-07 18:48:33 +02:00
gem 'rspec-puppet', '~> 2.1', :require => false
end
2015-05-07 00:15:21 +02:00
if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
gem 'facter', :require => false
end
if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end
2014-06-26 02:23:12 +02:00
# vim:ft=ruby