beaker-hostgenerator 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beaker-hostgenerator/data.rb +11 -2
- data/lib/beaker-hostgenerator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf00cc05f0e3ca58dca040282af0693ec00b828f4f581d36fbd67fc3d2cbbb46
|
4
|
+
data.tar.gz: 15171038dc29db2e7177ab8b5fa850b65e907d0dcf77ae97174c9b6c998093a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a55d6ec141b6364cca5ab04a915ff128893f68e75d53515500e1275bdc4b8d1474549a430ea208098a31d3e7c171535a59edcbe217af0618c9b99d956e57db7
|
7
|
+
data.tar.gz: e106b154758ef3633b9054e0534a0534e4970d97493b25c6e55ca9d3b50d0c357df96fde3014f51a56d8b77c26f5abe7af1f979a9191baf4980b0a1ad265b66e
|
@@ -13,7 +13,7 @@ module BeakerHostGenerator
|
|
13
13
|
# `include BeakerHostGenerator::Data` and then `<function>()`.
|
14
14
|
module Data
|
15
15
|
module_function
|
16
|
-
|
16
|
+
MASTER_PE_VERSION=2019.4
|
17
17
|
PE_TARBALL_SERVER="https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local"
|
18
18
|
|
19
19
|
def pe_version
|
@@ -41,7 +41,16 @@ module BeakerHostGenerator
|
|
41
41
|
''
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
if(Gem::Version.new($1) < Gem::Version.new("#{MASTER_PE_VERSION}") || version =~ /#{base_regex}-rc\d+\Z/)
|
45
|
+
pe_branch = $1
|
46
|
+
else
|
47
|
+
#Is this a Master PEZ build?
|
48
|
+
if(version =~ /.*(PEZ|pez)_.*/)
|
49
|
+
pe_branch = "master/feature"
|
50
|
+
else
|
51
|
+
pe_branch = 'master'
|
52
|
+
end
|
53
|
+
end
|
45
54
|
|
46
55
|
return sprintf(source, ("#{pe_branch}" || ''))
|
47
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-hostgenerator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Branan Purvine-Riley
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|