chef-sugar 5.1.8 → 5.1.9
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/sugar/architecture.rb +2 -2
- data/lib/chef/sugar/docker.rb +2 -2
- data/lib/chef/sugar/kitchen.rb +2 -2
- data/lib/chef/sugar/platform.rb +1 -1
- data/lib/chef/sugar/platform_family.rb +1 -1
- data/lib/chef/sugar/version.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: d72a8bfee113bc27fd2cfa75f5e25fabfcb8108645f8431b2c5af58bb3426445
|
|
4
|
+
data.tar.gz: 67ab7cbefbb46bc41fa08ffe9f5b62f9398fd4ceff559badc14875c9402c28ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7035ac92d9edbcaf49b338c54cfe4b408b2d796f308df391ef6f7e3db0274bd0374130046da5d24b91169fc09177882117f043a761093aadad79f091d41d836c
|
|
7
|
+
data.tar.gz: bfd9c2ee77514a6c85e4e061f8c9f48c9ff04f8bea8e10138d3753864e7415b86828237e35e286176fc3368c290f062eb510afc1cc762675174b1fd69d16d51f
|
|
@@ -20,7 +20,7 @@ class Chef
|
|
|
20
20
|
extend self
|
|
21
21
|
|
|
22
22
|
# these helpers have been moved to core-chef
|
|
23
|
-
|
|
23
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
24
24
|
#
|
|
25
25
|
# Determine if the current architecture is 64-bit
|
|
26
26
|
#
|
|
@@ -136,7 +136,7 @@ class Chef
|
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
module DSL
|
|
139
|
-
|
|
139
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
140
140
|
# @see Chef::Sugar::Architecture#_64_bit?
|
|
141
141
|
def _64_bit?; Chef::Sugar::Architecture._64_bit?(node); end
|
|
142
142
|
|
data/lib/chef/sugar/docker.rb
CHANGED
|
@@ -20,7 +20,7 @@ class Chef
|
|
|
20
20
|
extend self
|
|
21
21
|
|
|
22
22
|
# these helpers have been moved to core chef
|
|
23
|
-
|
|
23
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
24
24
|
#
|
|
25
25
|
# Returns true if the current node is a docker container.
|
|
26
26
|
#
|
|
@@ -36,7 +36,7 @@ class Chef
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
module DSL
|
|
39
|
-
|
|
39
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
40
40
|
# @see Chef::Sugar::Docker#docker?
|
|
41
41
|
def docker?; Chef::Sugar::Docker.docker?(node); end
|
|
42
42
|
end
|
data/lib/chef/sugar/kitchen.rb
CHANGED
|
@@ -20,7 +20,7 @@ class Chef
|
|
|
20
20
|
extend self
|
|
21
21
|
|
|
22
22
|
# these helpers have been moved to core-chef
|
|
23
|
-
|
|
23
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
24
24
|
#
|
|
25
25
|
# Returns true if the current node is provisioned by Test Kitchen.
|
|
26
26
|
#
|
|
@@ -36,7 +36,7 @@ class Chef
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
module DSL
|
|
39
|
-
|
|
39
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
40
40
|
# @see Chef::Sugar::Kitchen#kitchen?
|
|
41
41
|
def kitchen?; Chef::Sugar::Kitchen.kitchen?(node); end
|
|
42
42
|
end
|
data/lib/chef/sugar/platform.rb
CHANGED
|
@@ -122,7 +122,7 @@ class Chef
|
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# these helpers have been moved to core chef
|
|
125
|
-
|
|
125
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
126
126
|
#
|
|
127
127
|
# Determine if the current node is linux mint.
|
|
128
128
|
#
|
|
@@ -20,7 +20,7 @@ class Chef
|
|
|
20
20
|
extend self
|
|
21
21
|
|
|
22
22
|
# these helpers have been moved to core chef
|
|
23
|
-
|
|
23
|
+
if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
24
24
|
|
|
25
25
|
#
|
|
26
26
|
# Determine if the current node is a member of the arch family.
|
data/lib/chef/sugar/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-sugar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Seth Vargo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A series of helpful sugar of the Chef core and other resources to make
|
|
14
14
|
a cleaner, more lean recipe DSL, enforce DRY principles, and make writing Chef recipes
|