pdk 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pdk/util.rb +16 -13
- data/lib/pdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 849b417ba98de92f7d243560e9b2193dd898f9b8
|
|
4
|
+
data.tar.gz: badf3fc8fc3cf2698ad3ea37eb4eea53fda61859
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b58b9543ba8b4e556115694e23dc820d0aafd286d7719a36d103d7f1957a2d041f5eaf1e8a5f270e9103bc823926f2359258628c405b0239a4303492292ce66
|
|
7
|
+
data.tar.gz: c63a7b3f68b91e0a632fedf3c74d759bbfa3b137a9428a9bf28a231d2ded635794106841d4da65ef7802973029a45c313260c3ed33183f3cf9efd1cb70c58abf
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All changes to this repo will be documented in this file.
|
|
|
4
4
|
See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) for a high-level summary.
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [v1.3.1](https://github.com/puppetlabs/pdk/tree/v1.3.1) (2017-12-20)
|
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.3.0...v1.3.1)
|
|
9
|
+
|
|
10
|
+
**Fixed bugs:**
|
|
11
|
+
|
|
12
|
+
- \(PDK-736\) Improve handling of old template-url and template-ref [\#397](https://github.com/puppetlabs/pdk/pull/397) ([scotje](https://github.com/scotje))
|
|
13
|
+
|
|
7
14
|
## [v1.3.0](https://github.com/puppetlabs/pdk/tree/v1.3.0) (2017-12-15)
|
|
8
15
|
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.2.1...v1.3.0)
|
|
9
16
|
|
|
@@ -34,6 +41,7 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
|
|
|
34
41
|
|
|
35
42
|
**Merged pull requests:**
|
|
36
43
|
|
|
44
|
+
- Release 1.3.0 [\#394](https://github.com/puppetlabs/pdk/pull/394) ([bmjen](https://github.com/bmjen))
|
|
37
45
|
- \(PDK-729\) Remove Set usage in metadata [\#393](https://github.com/puppetlabs/pdk/pull/393) ([rodjek](https://github.com/rodjek))
|
|
38
46
|
- \(maint\) Various UX fixes [\#391](https://github.com/puppetlabs/pdk/pull/391) ([bmjen](https://github.com/bmjen))
|
|
39
47
|
- Minor updates to convert dialog [\#390](https://github.com/puppetlabs/pdk/pull/390) ([HelenCampbell](https://github.com/HelenCampbell))
|
data/lib/pdk/util.rb
CHANGED
|
@@ -173,11 +173,15 @@ module PDK
|
|
|
173
173
|
module_function :targets_relative_to_pwd
|
|
174
174
|
|
|
175
175
|
def default_template_url
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
answer_file_url = PDK.answers['template-url']
|
|
177
|
+
|
|
178
|
+
return puppetlabs_template_url if answer_file_url.nil?
|
|
179
|
+
|
|
180
|
+
# Ignore answer file template-url if the value is the old or new default.
|
|
181
|
+
return puppetlabs_template_url if answer_file_url == 'https://github.com/puppetlabs/pdk-module-template'
|
|
182
|
+
return puppetlabs_template_url if answer_file_url == puppetlabs_template_url
|
|
183
|
+
|
|
184
|
+
answer_file_url
|
|
181
185
|
end
|
|
182
186
|
module_function :default_template_url
|
|
183
187
|
|
|
@@ -191,19 +195,18 @@ module PDK
|
|
|
191
195
|
module_function :puppetlabs_template_url
|
|
192
196
|
|
|
193
197
|
def default_template_ref
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
end
|
|
198
|
+
# TODO: This should respect a --template-ref option if we add that
|
|
199
|
+
return 'origin/master' if default_template_url != puppetlabs_template_url
|
|
200
|
+
|
|
201
|
+
puppetlabs_template_ref
|
|
199
202
|
end
|
|
200
203
|
module_function :default_template_ref
|
|
201
204
|
|
|
202
205
|
def puppetlabs_template_ref
|
|
203
|
-
if PDK::Util.
|
|
204
|
-
PDK::TEMPLATE_REF
|
|
205
|
-
else
|
|
206
|
+
if PDK::Util.development_mode?
|
|
206
207
|
'origin/master'
|
|
208
|
+
else
|
|
209
|
+
PDK::TEMPLATE_REF
|
|
207
210
|
end
|
|
208
211
|
end
|
|
209
212
|
module_function :puppetlabs_template_ref
|
data/lib/pdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-12-
|
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|