chef-config 12.17.44 → 12.18.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-config/mixin/fuzzy_hostname_matcher.rb +5 -3
- data/lib/chef-config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e9064329595dcd6ded062d1e25c46ba566ae75a
|
4
|
+
data.tar.gz: 6dd3f95b4406b16801eb6159298fc41524a600c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9902073724301dd2104f88ae736f8b52858580edf198a24758dbe708c663658197aa9f4d192680586d747939b0c048d07d43b8b4977b1d18c2391aa221f659
|
7
|
+
data.tar.gz: 1e0e81945b66ae7e72859ef88a298c5adf090d06a061d9a11a68b5047d55f10bc478d74b36ae0d810ceef6323afd93b5752f7cf0bff893ab467b531fa387e1f2
|
@@ -21,9 +21,11 @@ module ChefConfig
|
|
21
21
|
module FuzzyHostnameMatcher
|
22
22
|
|
23
23
|
def fuzzy_hostname_match_any?(hostname, matches)
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
if (!hostname.nil?) && (!matches.nil?)
|
25
|
+
return matches.to_s.split(/\s*,\s*/).compact.any? do |m|
|
26
|
+
fuzzy_hostname_match?(hostname, m)
|
27
|
+
end
|
28
|
+
end
|
27
29
|
|
28
30
|
false
|
29
31
|
end
|
data/lib/chef-config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.18.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|