knife 18.8.13 → 18.8.65
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/lib/chef/knife/version.rb +1 -1
- data/lib/chef/knife/yaml_convert.rb +3 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58805e9e530880fd8b1d22a9bbf4e8ed7834f098c4e49102bcc919317b98f6c3
|
|
4
|
+
data.tar.gz: '06922ce94fdf2739de01ebe96863c35972266021bf7da8c3547d090801373529'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d3d50ab7c09aea6479cac9c842460dfe4d57a5f27136d5bd0ad11d4b401e19f309958c1138277186a4c54fa5b8f3c801118bbd4d9af8533d7c33a12249801d9
|
|
7
|
+
data.tar.gz: ac88975c0690bed0daa32b7f2302efecf82e426b81b94564e7b13112b684787f12f577656c03a90f281d7867c9d41b9f54f33769e8fea69b9513f30a6d4efe58
|
data/lib/chef/knife/version.rb
CHANGED
|
@@ -51,7 +51,9 @@ class Chef::Knife::YamlConvert < Chef::Knife
|
|
|
51
51
|
yaml_contents = File.read(yaml_file)
|
|
52
52
|
|
|
53
53
|
# YAML can contain multiple documents (--- is the separator), let's not support that.
|
|
54
|
-
|
|
54
|
+
# Count document separators instead of using unsafe load_stream
|
|
55
|
+
doc_count = yaml_contents.scan(/^---\s*$/).length
|
|
56
|
+
if doc_count > 1
|
|
55
57
|
ui.fatal!("YAML recipe '#{yaml_file}' contains multiple documents, only one is supported")
|
|
56
58
|
end
|
|
57
59
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 18.8.
|
|
4
|
+
version: 18.8.65
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Jacob
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
10
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: chef-config
|
|
@@ -1177,7 +1176,6 @@ metadata:
|
|
|
1177
1176
|
homepage_uri: https://www.chef.io
|
|
1178
1177
|
mailing_list_uri: https://discourse.chef.io/
|
|
1179
1178
|
source_code_uri: https://github.com/chef/chef/
|
|
1180
|
-
post_install_message:
|
|
1181
1179
|
rdoc_options: []
|
|
1182
1180
|
require_paths:
|
|
1183
1181
|
- lib
|
|
@@ -1192,8 +1190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1192
1190
|
- !ruby/object:Gem::Version
|
|
1193
1191
|
version: '0'
|
|
1194
1192
|
requirements: []
|
|
1195
|
-
rubygems_version: 3.
|
|
1196
|
-
signing_key:
|
|
1193
|
+
rubygems_version: 3.6.2
|
|
1197
1194
|
specification_version: 4
|
|
1198
1195
|
summary: The knife CLI for Chef Infra.
|
|
1199
1196
|
test_files: []
|