chef 17.9.42-universal-mingw32 → 17.9.46-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfcbcbe5a0ad79eff9aa99eb671a0fd4c707f5a92c110321523d0b538a28e2be
|
4
|
+
data.tar.gz: 4789457137f4c223ce82b8eec0ebd8cae9f3ab123abd6aac701da97cc317db3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1faf50263931d7aa589efe6f764f91d7e1f593ea00216749ecaecd4f7971c60e70f84cf4fb9f2ffaa8699f56f8869c5227b7502afb6328d4fe67b673a52e2864
|
7
|
+
data.tar.gz: 0deb78dd1339a331f3bf6770f21aca77617da19aeff8a77854cf0cd15c531fe16ffd505383a53f5e3212bf8b372fea3f83adedb93e1f639852c96e4aeab0fdac
|
@@ -20,6 +20,12 @@
|
|
20
20
|
|
21
21
|
require_relative "../resource"
|
22
22
|
require "fileutils" unless defined?(FileUtils)
|
23
|
+
begin
|
24
|
+
# ffi-libarchive must be eager loaded see: https://github.com/chef/chef/issues/12228
|
25
|
+
require "ffi-libarchive" unless defined?(Archive::Reader)
|
26
|
+
rescue LoadError
|
27
|
+
STDERR.puts "ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available"
|
28
|
+
end
|
23
29
|
|
24
30
|
class Chef
|
25
31
|
class Resource
|
@@ -92,8 +98,6 @@ class Chef
|
|
92
98
|
|
93
99
|
action :extract, description: "Extract and archive file." do
|
94
100
|
|
95
|
-
require_libarchive
|
96
|
-
|
97
101
|
unless ::File.exist?(new_resource.path)
|
98
102
|
raise Errno::ENOENT, "No archive found at #{new_resource.path}! Cannot continue."
|
99
103
|
end
|
@@ -131,10 +135,6 @@ class Chef
|
|
131
135
|
end
|
132
136
|
|
133
137
|
action_class do
|
134
|
-
def require_libarchive
|
135
|
-
require "ffi-libarchive"
|
136
|
-
end
|
137
|
-
|
138
138
|
def define_resource_requirements
|
139
139
|
if new_resource.mode.is_a?(Integer)
|
140
140
|
Chef.deprecated(:archive_file_integer_file_mode, "The mode property should be passed to archive_file resources as a String and not an Integer to ensure the value is properly interpreted.")
|
data/lib/chef/version.rb
CHANGED
@@ -18,8 +18,9 @@
|
|
18
18
|
require "spec_helper"
|
19
19
|
require "tmpdir"
|
20
20
|
|
21
|
-
#
|
22
|
-
|
21
|
+
# AIX is broken, see https://github.com/chef/omnibus-software/issues/1566
|
22
|
+
# Windows tests are disbled since we'd need libarchive on windows testers in buildkite for PRs
|
23
|
+
describe Chef::Resource::ArchiveFile, :not_supported_on_aix, :not_supported_on_windows do
|
23
24
|
include RecipeDSLHelper
|
24
25
|
|
25
26
|
let(:tmp_path) { Dir.mktmpdir }
|
data/spec/spec_helper.rb
CHANGED
@@ -187,8 +187,6 @@ RSpec.configure do |config|
|
|
187
187
|
config.filter_run_excluding not_rhel7: true if rhel7?
|
188
188
|
config.filter_run_excluding not_intel_64bit: true if intel_64bit?
|
189
189
|
|
190
|
-
config.filter_run_excluding libarchive_loading_broken: true if aix? || amazon_linux? || rhel7?
|
191
|
-
|
192
190
|
# these let us use chef: ">= 13" or ruby: "~> 2.0.0" or any other Gem::Dependency-style constraint
|
193
191
|
config.filter_run_excluding chef: DependencyProc.with(Chef::VERSION)
|
194
192
|
config.filter_run_excluding ruby: DependencyProc.with(RUBY_VERSION)
|
@@ -29,8 +29,7 @@ rescue LoadError
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
describe Chef::Resource::ArchiveFile, :libarchive_loading_broken do
|
32
|
+
describe Chef::Resource::ArchiveFile, :not_supported_on_aix do
|
34
33
|
let(:node) { Chef::Node.new }
|
35
34
|
let(:events) { Chef::EventDispatch::Dispatcher.new }
|
36
35
|
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.9.
|
4
|
+
version: 17.9.46
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 17.9.
|
19
|
+
version: 17.9.46
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 17.9.
|
26
|
+
version: 17.9.46
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: chef-utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 17.9.
|
33
|
+
version: 17.9.46
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 17.9.
|
40
|
+
version: 17.9.46
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: train-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|