pdk 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/lib/pdk/cli.rb +1 -1
- data/lib/pdk/cli/util.rb +21 -0
- data/lib/pdk/version.rb +1 -1
- data/locales/pdk.pot +13 -13
- 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: 46888ff531aa661b8dd817436aa36c538ad768a2ff5bdab0faac0297fa099ab7
|
4
|
+
data.tar.gz: 2a5965d847c138c5a23e0a09d12ba6535ece44f655d0cad81b5d936a29308a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63006870c08a97822390e2602f143c8c907126d13dd80b54ecfc69918f6d20dba91f98040a33430d7ecbed446f62dfc22112d5043f99944f787f947a2dfe90b0
|
7
|
+
data.tar.gz: 06f26931e79e3467770db297e5bd6c922457f4fa62030607c25db3dba98a185c8dd596a459dd590c9c3cb634af41229a3d109af7210a9f4225651e456f58b5eb
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,19 @@ 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.11.1](https://github.com/puppetlabs/pdk/tree/v1.11.1) (2019-07-01)
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.11.0...v1.11.1)
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- PDK explicitly asking for consent to collect anonymous usage information [\#690](https://github.com/puppetlabs/pdk/issues/690)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- \(PDK-1415\) Allow analytics opt-out prompt to be disabled via ENV [\#691](https://github.com/puppetlabs/pdk/pull/691) ([scotje](https://github.com/scotje))
|
17
|
+
- \(PDK-1414\) Detect common CI environments and set non-interactive [\#689](https://github.com/puppetlabs/pdk/pull/689) ([glennsarti](https://github.com/glennsarti))
|
18
|
+
- \(PDK-1409\) Bump PDK version to 1.11.1.pre [\#688](https://github.com/puppetlabs/pdk/pull/688) ([rodjek](https://github.com/rodjek))
|
19
|
+
|
7
20
|
## [v1.11.0](https://github.com/puppetlabs/pdk/tree/v1.11.0) (2019-06-27)
|
8
21
|
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.10.0...v1.11.0)
|
9
22
|
|
@@ -23,6 +36,7 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
|
|
23
36
|
|
24
37
|
**Merged pull requests:**
|
25
38
|
|
39
|
+
- \(PDK-1403\) Release 1.11.0 [\#687](https://github.com/puppetlabs/pdk/pull/687) ([rodjek](https://github.com/rodjek))
|
26
40
|
- \(FIXUP\) Avoid attempting to append nokogiri pin to nil in package tests [\#686](https://github.com/puppetlabs/pdk/pull/686) ([scotje](https://github.com/scotje))
|
27
41
|
- Revert "\(PDK-1366\) Update default operatingsystem versions" [\#685](https://github.com/puppetlabs/pdk/pull/685) ([rodjek](https://github.com/rodjek))
|
28
42
|
- \(maint\) Clear Gemfile overrides before pdk update test [\#684](https://github.com/puppetlabs/pdk/pull/684) ([rodjek](https://github.com/rodjek))
|
@@ -945,4 +959,4 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
|
|
945
959
|
|
946
960
|
|
947
961
|
|
948
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
962
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/lib/pdk/cli.rb
CHANGED
@@ -51,7 +51,7 @@ module PDK::CLI
|
|
51
51
|
|
52
52
|
def self.run(args)
|
53
53
|
@args = args
|
54
|
-
PDK::Config.analytics_config_interview! unless PDK::Config.analytics_config_exist?
|
54
|
+
PDK::Config.analytics_config_interview! unless ENV['PDK_DISABLE_ANALYTICS'] || PDK::Config.analytics_config_exist?
|
55
55
|
@base_cmd.run(args)
|
56
56
|
rescue PDK::CLI::ExitWithError => e
|
57
57
|
PDK.logger.send(e.log_level, e.message)
|
data/lib/pdk/cli/util.rb
CHANGED
@@ -48,9 +48,30 @@ module PDK
|
|
48
48
|
end
|
49
49
|
module_function :prompt_for_yes
|
50
50
|
|
51
|
+
# Uses environment variables to detect if the current process is running in common
|
52
|
+
# Continuous Integration (CI) environments
|
53
|
+
# @return [Boolean] Whether the PDK is in a CI based environment
|
54
|
+
def ci_environment?
|
55
|
+
[
|
56
|
+
'CI', # Generic
|
57
|
+
'CONTINUOUS_INTEGRATION', # Generic
|
58
|
+
'APPVEYOR_BUILD_FOLDER', # AppVeyor CI
|
59
|
+
'GITLAB_CI', # GitLab CI
|
60
|
+
'JENKINS_URL', # Jenkins
|
61
|
+
'BUILD_DEFINITIONNAME', # Azure Pipelines
|
62
|
+
'TEAMCITY_VERSION', # Team City
|
63
|
+
'BAMBOO_BUILDKEY', # Bamboo
|
64
|
+
'GOCD_SERVER_URL', # Go CD
|
65
|
+
'TRAVIS', # Travis CI
|
66
|
+
'GITHUB_WORKFLOW', # GitHub Actions
|
67
|
+
].any? { |name| ENV.key?(name) }
|
68
|
+
end
|
69
|
+
module_function :ci_environment?
|
70
|
+
|
51
71
|
def interactive?
|
52
72
|
return false if PDK.logger.debug?
|
53
73
|
return !ENV['PDK_FRONTEND'].casecmp('noninteractive').zero? if ENV['PDK_FRONTEND']
|
74
|
+
return false if ci_environment?
|
54
75
|
return false unless $stderr.isatty
|
55
76
|
|
56
77
|
true
|
data/lib/pdk/version.rb
CHANGED
data/locales/pdk.pot
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: puppet development kit v1.
|
9
|
+
"Project-Id-Version: puppet development kit v1.11.0-5-gd7565ab\n"
|
10
10
|
"\n"
|
11
11
|
"Report-Msgid-Bugs-To: docs@puppet.com\n"
|
12
|
-
"POT-Creation-Date: 2019-
|
13
|
-
"PO-Revision-Date: 2019-
|
12
|
+
"POT-Creation-Date: 2019-07-01 15:57+1000\n"
|
13
|
+
"PO-Revision-Date: 2019-07-01 15:57+1000\n"
|
14
14
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
15
15
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16
16
|
"Language: \n"
|
@@ -495,43 +495,43 @@ msgstr ""
|
|
495
495
|
msgid "Answer \"Y\" to continue or \"n\" to cancel."
|
496
496
|
msgstr ""
|
497
497
|
|
498
|
-
#: ../lib/pdk/cli/util.rb:
|
498
|
+
#: ../lib/pdk/cli/util.rb:86
|
499
499
|
msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
|
500
500
|
msgstr ""
|
501
501
|
|
502
|
-
#: ../lib/pdk/cli/util.rb:
|
502
|
+
#: ../lib/pdk/cli/util.rb:92
|
503
503
|
msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
|
504
504
|
msgstr ""
|
505
505
|
|
506
|
-
#: ../lib/pdk/cli/util.rb:
|
506
|
+
#: ../lib/pdk/cli/util.rb:97
|
507
507
|
msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
|
508
508
|
msgstr ""
|
509
509
|
|
510
|
-
#: ../lib/pdk/cli/util.rb:
|
510
|
+
#: ../lib/pdk/cli/util.rb:101
|
511
511
|
msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
|
512
512
|
msgstr ""
|
513
513
|
|
514
|
-
#: ../lib/pdk/cli/util.rb:
|
514
|
+
#: ../lib/pdk/cli/util.rb:127
|
515
515
|
msgid "Using Ruby %{version}"
|
516
516
|
msgstr ""
|
517
517
|
|
518
|
-
#: ../lib/pdk/cli/util.rb:
|
518
|
+
#: ../lib/pdk/cli/util.rb:137
|
519
519
|
msgid "Using %{gem} %{version}"
|
520
520
|
msgstr ""
|
521
521
|
|
522
|
-
#: ../lib/pdk/cli/util.rb:
|
522
|
+
#: ../lib/pdk/cli/util.rb:167
|
523
523
|
msgid "You cannot specify a %{first} and %{second} at the same time"
|
524
524
|
msgstr ""
|
525
525
|
|
526
|
-
#: ../lib/pdk/cli/util.rb:
|
526
|
+
#: ../lib/pdk/cli/util.rb:179
|
527
527
|
msgid "You cannot specify a %{first} and %{second} at the same time."
|
528
528
|
msgstr ""
|
529
529
|
|
530
|
-
#: ../lib/pdk/cli/util.rb:
|
530
|
+
#: ../lib/pdk/cli/util.rb:215
|
531
531
|
msgid "--template-ref requires --template-url to also be specified."
|
532
532
|
msgstr ""
|
533
533
|
|
534
|
-
#: ../lib/pdk/cli/util.rb:
|
534
|
+
#: ../lib/pdk/cli/util.rb:219
|
535
535
|
msgid "--template-url may not be used to specify paths containing #'s."
|
536
536
|
msgstr ""
|
537
537
|
|
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.11.
|
4
|
+
version: 1.11.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: 2019-
|
11
|
+
date: 2019-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|