Mercurial > repos > other > Puppet
annotate modules/stdlib/Gemfile @ 235:e602c5f974ac puppet-3.6
Make a cron job for updating Wordpress
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 15 Dec 2019 16:28:47 +0000 |
parents | addb0ea390a1 |
children | c42fb28cff86 |
rev | line source |
---|---|
37 | 1 source ENV['GEM_SOURCE'] || 'https://rubygems.org' |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 def location_for(place, fake_version = nil) |
37 | 4 if place =~ /^(git[:@][^#]*)#(.*)/ |
5 [fake_version, { :git => $1, :branch => $2, :require => false }].compact | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 elsif place =~ /^file:\/\/(.*)/ |
37 | 7 ['>= 0', { :path => File.expand_path($1), :require => false }] |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 else |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 [place, { :require => false }] |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 end |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 end |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 |
37 | 13 group :development, :unit_tests do |
14 gem 'rake', '~> 10.1.0', :require => false | |
15 gem 'rspec-puppet', :require => false | |
16 gem 'puppetlabs_spec_helper', :require => false | |
17 gem 'puppet-lint', :require => false | |
18 gem 'pry', :require => false | |
19 gem 'simplecov', :require => false | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 end |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 |
37 | 22 group :system_tests do |
23 gem 'beaker-rspec', :require => false | |
24 gem 'serverspec', :require => false | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
25 end |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
27 ENV['GEM_PUPPET_VERSION'] ||= ENV['PUPPET_GEM_VERSION'] |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
28 puppetversion = ENV['GEM_PUPPET_VERSION'] |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
29 if puppetversion |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
30 gem 'puppet', *location_for(puppetversion) |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
31 else |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
32 gem 'puppet', :require => false |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
33 end |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
34 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
35 # vim:ft=ruby |