pdk 2.0.0 → 2.1.0
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 +23 -1
- data/lib/pdk/cli.rb +1 -0
- data/lib/pdk/cli/env.rb +52 -0
- data/lib/pdk/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4d97af3b41bc901757039fbba252933d45bc0d8df7ee4394b4de179d737bc3e
|
4
|
+
data.tar.gz: b09c44a9520f79fa28aaa6732d2080f170268603948fdf5522162e255c0d30aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef5ecbf55d7418bada352cf728913bba313cf63011d9fa19315ff65dd8247ee0a5e3dd1bb364a28ddc5dac4d4657eabc5d29556126fefed2b591f0f0e63806e
|
7
|
+
data.tar.gz: 3b836af5778a24a8dbe1d990e9dd7615011764000bdcbd81fab34ebc755c4b9c7dfebd66e82b07c7751db350fb3f16c86f6e5fb072efcd773c43ab7753132085
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,30 @@
|
|
3
3
|
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
|
+
## [v2.1.0](https://github.com/puppetlabs/pdk/tree/v2.1.0) (2021-03-31)
|
6
7
|
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v2.0.0...v2.1.0)
|
9
|
+
|
10
|
+
**Fixed bugs:**
|
11
|
+
|
12
|
+
- Documentation issue for brew installs on Mac [\#963](https://github.com/puppetlabs/pdk/issues/963)
|
13
|
+
- PDK output scrollback in VS Code is extremely limited [\#829](https://github.com/puppetlabs/pdk/issues/829)
|
14
|
+
- --verbose option broken for `pdk new defined_type` [\#679](https://github.com/puppetlabs/pdk/issues/679)
|
15
|
+
- getting error with "$ pdk validate" after upgraded to 1.5.0 \(private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet\_syntax.rb:88:in `parse_offense': undefined method` names' for nil:NilClass \(NoMethodError\)\) [\#518](https://github.com/puppetlabs/pdk/issues/518)
|
16
|
+
|
17
|
+
**Closed issues:**
|
18
|
+
|
19
|
+
- \[Feature Request\] Validate CD4PE Yaml files [\#970](https://github.com/puppetlabs/pdk/issues/970)
|
20
|
+
|
21
|
+
**Merged pull requests:**
|
22
|
+
|
23
|
+
- \(maint\) Mark stale issues [\#1028](https://github.com/puppetlabs/pdk/pull/1028) ([jpogran](https://github.com/jpogran))
|
24
|
+
- \(PF-2332\) Add `pdk env` subcommand [\#957](https://github.com/puppetlabs/pdk/pull/957) ([nkanderson](https://github.com/nkanderson))
|
25
|
+
- Docs: Install on macOS with brew [\#954](https://github.com/puppetlabs/pdk/pull/954) ([rwaffen](https://github.com/rwaffen))
|
26
|
+
- \(MAINT\) Bump version to 2.1.0.pre [\#952](https://github.com/puppetlabs/pdk/pull/952) ([scotje](https://github.com/scotje))
|
27
|
+
- \(MAINT\) Fixup some superfluous entries in the 2.0.0 release notes [\#951](https://github.com/puppetlabs/pdk/pull/951) ([scotje](https://github.com/scotje))
|
28
|
+
- \(Docs\) Update version number in welcome page [\#950](https://github.com/puppetlabs/pdk/pull/950) ([hestonhoffman](https://github.com/hestonhoffman))
|
29
|
+
- \(Docs\) Release notes edits [\#949](https://github.com/puppetlabs/pdk/pull/949) ([hestonhoffman](https://github.com/hestonhoffman))
|
7
30
|
## [v2.0.0](https://github.com/puppetlabs/pdk/tree/v2.0.0) (2021-02-24)
|
8
31
|
|
9
32
|
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.18.1...v2.0.0)
|
@@ -58,7 +81,6 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
|
|
58
81
|
- Warning from libhoney when running unit test with PDK 1.17 [\#875](https://github.com/puppetlabs/pdk/issues/875)
|
59
82
|
- 'pdk convert' of a module that's inside a control repo adds boilerplate to the control repo [\#874](https://github.com/puppetlabs/pdk/issues/874)
|
60
83
|
- GemNotFound error for public\_suffix-3.1.1 when using --add-tests [\#869](https://github.com/puppetlabs/pdk/issues/869)
|
61
|
-
- Scrollback of failed rspec tests in VS code is extremely limited [\#829](https://github.com/puppetlabs/pdk/issues/829)
|
62
84
|
- Running individual rspec tests on Windows requires escaping the path [\#828](https://github.com/puppetlabs/pdk/issues/828)
|
63
85
|
- Generated descriptions for certain test comparisons break JUnit output [\#821](https://github.com/puppetlabs/pdk/issues/821)
|
64
86
|
- Fix PDK release command module validation [\#880](https://github.com/puppetlabs/pdk/pull/880) ([carabasdaniel](https://github.com/carabasdaniel))
|
data/lib/pdk/cli.rb
CHANGED
data/lib/pdk/cli/env.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
module PDK::CLI
|
2
|
+
@env_cmd = @base_cmd.define_command do
|
3
|
+
name 'env'
|
4
|
+
usage _('env')
|
5
|
+
summary _('(Experimental) Output environment variables for specific Puppet context')
|
6
|
+
description _(<<-EOF
|
7
|
+
[experimental] Aids in setting a CLI context for a specified version of Puppet by outputting export commands for necessary environment variables.
|
8
|
+
EOF
|
9
|
+
)
|
10
|
+
|
11
|
+
PDK::CLI.puppet_version_options(self)
|
12
|
+
PDK::CLI.puppet_dev_option(self)
|
13
|
+
|
14
|
+
run do |opts, _args, _cmd|
|
15
|
+
require 'pdk/util'
|
16
|
+
require 'pdk/util/ruby_version'
|
17
|
+
|
18
|
+
PDK::CLI::Util.validate_puppet_version_opts(opts)
|
19
|
+
|
20
|
+
PDK::CLI::Util.analytics_screen_view('env')
|
21
|
+
|
22
|
+
# Ensure that the correct Ruby is activated before running command.
|
23
|
+
puppet_env = PDK::CLI::Util.puppet_from_opts_or_env(opts)
|
24
|
+
PDK::Util::RubyVersion.use(puppet_env[:ruby_version])
|
25
|
+
|
26
|
+
resolved_env = {
|
27
|
+
'PDK_RESOLVED_PUPPET_VERSION' => puppet_env[:gemset][:puppet],
|
28
|
+
'PDK_RESOLVED_RUBY_VERSION' => puppet_env[:ruby_version],
|
29
|
+
}
|
30
|
+
|
31
|
+
resolved_env['GEM_HOME'] = PDK::Util::RubyVersion.gem_home
|
32
|
+
gem_path = PDK::Util::RubyVersion.gem_path
|
33
|
+
resolved_env['GEM_PATH'] = gem_path.empty? ? resolved_env['GEM_HOME'] : gem_path
|
34
|
+
|
35
|
+
# Make sure invocation of Ruby prefers our private installation.
|
36
|
+
package_binpath = PDK::Util.package_install? ? File.join(PDK::Util.pdk_package_basedir, 'bin') : nil
|
37
|
+
|
38
|
+
resolved_env['PATH'] = [
|
39
|
+
PDK::Util::RubyVersion.bin_path,
|
40
|
+
File.join(resolved_env['GEM_HOME'], 'bin'),
|
41
|
+
PDK::Util::RubyVersion.gem_paths_raw.map { |gem_path_raw| File.join(gem_path_raw, 'bin') },
|
42
|
+
package_binpath,
|
43
|
+
PDK::Util::Env['PATH'],
|
44
|
+
].compact.flatten.join(File::PATH_SEPARATOR)
|
45
|
+
|
46
|
+
resolved_env.each do |var, val|
|
47
|
+
puts "export #{var}=\"#{val}\""
|
48
|
+
end
|
49
|
+
exit 0
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
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: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -306,6 +306,7 @@ files:
|
|
306
306
|
- lib/pdk/cli/config/get.rb
|
307
307
|
- lib/pdk/cli/console.rb
|
308
308
|
- lib/pdk/cli/convert.rb
|
309
|
+
- lib/pdk/cli/env.rb
|
309
310
|
- lib/pdk/cli/errors.rb
|
310
311
|
- lib/pdk/cli/exec.rb
|
311
312
|
- lib/pdk/cli/exec/command.rb
|
@@ -441,7 +442,7 @@ files:
|
|
441
442
|
homepage: https://github.com/puppetlabs/pdk
|
442
443
|
licenses: []
|
443
444
|
metadata: {}
|
444
|
-
post_install_message:
|
445
|
+
post_install_message:
|
445
446
|
rdoc_options: []
|
446
447
|
require_paths:
|
447
448
|
- lib
|
@@ -456,9 +457,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
457
|
- !ruby/object:Gem::Version
|
457
458
|
version: '0'
|
458
459
|
requirements: []
|
459
|
-
|
460
|
-
|
461
|
-
signing_key:
|
460
|
+
rubygems_version: 3.1.2
|
461
|
+
signing_key:
|
462
462
|
specification_version: 4
|
463
463
|
summary: A key part of the Puppet Development Kit, the shortest path to better modules
|
464
464
|
test_files: []
|