diff options
author | Ashley Penney <ashley.penney@puppetlabs.com> | 2014-03-10 14:56:12 -0700 |
---|---|---|
committer | Ashley Penney <ashley.penney@puppetlabs.com> | 2014-03-10 14:56:12 -0700 |
commit | 0fabaa5f07d52feed34b6d58b586ee937752578c (patch) | |
tree | dc7ed110301d195a455fa4852b99940a03d7c43a /Gemfile | |
parent | 9e1cf99ccf12de2edaf73af73a8410e5cac6dd72 (diff) | |
download | puppet-stdlib-0fabaa5f07d52feed34b6d58b586ee937752578c.tar.gz puppet-stdlib-0fabaa5f07d52feed34b6d58b586ee937752578c.tar.bz2 |
Readd location_for
location_for is used in Jenkins to transform a passed in git
repo into something usable by bundler.
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 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, :test do gem 'rake', :require => false gem 'rspec-puppet', :require => false |