chef-utils 15.9.17 → 15.10.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-utils.rb +1 -1
- data/lib/chef-utils/dsl/architecture.rb +11 -1
- data/lib/chef-utils/dsl/cloud.rb +1 -1
- data/lib/chef-utils/dsl/introspection.rb +1 -1
- data/lib/chef-utils/dsl/os.rb +1 -1
- data/lib/chef-utils/dsl/path_sanity.rb +1 -1
- data/lib/chef-utils/dsl/platform.rb +1 -1
- data/lib/chef-utils/dsl/platform_family.rb +1 -1
- data/lib/chef-utils/dsl/platform_version.rb +1 -1
- data/lib/chef-utils/dsl/service.rb +1 -1
- data/lib/chef-utils/dsl/train_helpers.rb +1 -1
- data/lib/chef-utils/dsl/virtualization.rb +1 -1
- data/lib/chef-utils/dsl/which.rb +1 -1
- data/lib/chef-utils/dsl/windows.rb +1 -1
- data/lib/chef-utils/internal.rb +1 -1
- data/lib/chef-utils/version.rb +2 -2
- data/spec/unit/dsl/architecture_spec.rb +5 -5
- data/spec/unit/dsl/cloud_spec.rb +1 -1
- data/spec/unit/dsl/dsl_spec.rb +1 -1
- data/spec/unit/dsl/introspection_spec.rb +1 -1
- data/spec/unit/dsl/os_spec.rb +1 -1
- data/spec/unit/dsl/path_sanity_spec.rb +1 -1
- data/spec/unit/dsl/platform_family_spec.rb +1 -1
- data/spec/unit/dsl/platform_spec.rb +1 -1
- data/spec/unit/dsl/service_spec.rb +1 -1
- data/spec/unit/dsl/virtualization_spec.rb +1 -1
- data/spec/unit/dsl/which_spec.rb +1 -1
- data/spec/unit/dsl/windows_spec.rb +1 -1
- data/spec/unit/mash_spec.rb +1 -1
- 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: 76c25b870983b74b6d72d42877db6eeecbfae9592cd093dc43ddedb0fe288900
|
4
|
+
data.tar.gz: d59193774a8d7b40c8c1e5bfdec24db9770ab4b0c54eb54e9fc376dddd1fd7f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 848be02ce6d88d242729a6a635f7c7c26d0639dff2fa6f77319ad4651553362ad0abfbc48becc1e94095e7a391b7e770c1811cbd6891d16523e805075031f665
|
7
|
+
data.tar.gz: 15a4dddd22432185a6b58b76f646919002a34725ee9fe489323726852b2927e0d06386d7e7f9ba0dab0ba297cec11015e6fb8b375db9a649cd70a955c4bd89de
|
data/lib/chef-utils.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -103,6 +103,16 @@ module ChefUtils
|
|
103
103
|
%w{powerpc}.include?(node["kernel"]["machine"])
|
104
104
|
end
|
105
105
|
|
106
|
+
# Determine if the current architecture is arm
|
107
|
+
#
|
108
|
+
# @since 15.10
|
109
|
+
#
|
110
|
+
# @return [Boolean]
|
111
|
+
#
|
112
|
+
def arm?(node = __getnode)
|
113
|
+
%w{armhf aarch64 arm64 arch64}.include?(node["kernel"]["machine"])
|
114
|
+
end
|
115
|
+
|
106
116
|
# Determine if the current architecture is 32-bit ARM.
|
107
117
|
#
|
108
118
|
# @since 15.5
|
data/lib/chef-utils/dsl/cloud.rb
CHANGED
data/lib/chef-utils/dsl/os.rb
CHANGED
data/lib/chef-utils/dsl/which.rb
CHANGED
data/lib/chef-utils/internal.rb
CHANGED
data/lib/chef-utils/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
2
2
|
# License:: Apache License, Version 2.0
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,5 +15,5 @@
|
|
15
15
|
|
16
16
|
module ChefUtils
|
17
17
|
CHEFUTILS_ROOT = File.expand_path("../..", __FILE__)
|
18
|
-
VERSION = "15.
|
18
|
+
VERSION = "15.10.12".freeze
|
19
19
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -84,17 +84,17 @@ RSpec.describe ChefUtils::DSL::Architecture do
|
|
84
84
|
context "on aarch64" do
|
85
85
|
let(:arch) { "aarch64" }
|
86
86
|
|
87
|
-
arch_reports_true_for(:_64_bit?)
|
87
|
+
arch_reports_true_for(:_64_bit?, :arm?)
|
88
88
|
end
|
89
89
|
context "on arch64" do
|
90
90
|
let(:arch) { "arch64" }
|
91
91
|
|
92
|
-
arch_reports_true_for(:_64_bit?)
|
92
|
+
arch_reports_true_for(:_64_bit?, :arm?)
|
93
93
|
end
|
94
94
|
context "on arm64" do
|
95
95
|
let(:arch) { "arm64" }
|
96
96
|
|
97
|
-
arch_reports_true_for(:_64_bit?)
|
97
|
+
arch_reports_true_for(:_64_bit?, :arm?)
|
98
98
|
end
|
99
99
|
context "on sun4v" do
|
100
100
|
let(:arch) { "sun4v" }
|
@@ -129,7 +129,7 @@ RSpec.describe ChefUtils::DSL::Architecture do
|
|
129
129
|
context "on armhf" do
|
130
130
|
let(:arch) { "armhf" }
|
131
131
|
|
132
|
-
arch_reports_true_for(:armhf?, :_32_bit?)
|
132
|
+
arch_reports_true_for(:armhf?, :_32_bit?, :arm?)
|
133
133
|
end
|
134
134
|
context "on s390" do
|
135
135
|
let(:arch) { "s390" }
|
data/spec/unit/dsl/cloud_spec.rb
CHANGED
data/spec/unit/dsl/dsl_spec.rb
CHANGED
data/spec/unit/dsl/os_spec.rb
CHANGED
data/spec/unit/dsl/which_spec.rb
CHANGED
data/spec/unit/mash_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Matthew Kent (<mkent@magoazul.com>)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.10.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|