knife-attribute 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/knife-attribute/set.rb +1 -1
- data/lib/knife-attribute/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTIxYjlhOWExM2IyZThkYzM1ZGE4ZjMxYTk3NGFhNDg1NWIwYjI5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDg5YmNiMGVlNTlmMTE1MzBjZDM5MmQyNGRiNzIwNWM0NDBhYjhkYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDQxNGM2YzhmYWY4YjdkYTRhNDRlNDJhNDFkMTg3YWI0YmU3N2RjMmFjYjli
|
10
|
+
MDQ2ZGEyMzFlYjYxNGQ1ZDkxYjQ4NTExZDQzZmU4YWNjMjc1ZDRlZWE0ZTA1
|
11
|
+
YzNlZTM3MDdiNDE1M2UzODliNzM3NWYyYzUwNTgwOWRmOGNhMTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWE5MThiZWI4ZmI2ODY0NzcxZGY4ZDk1YWE0M2VkN2YzOWZmMTIzYTRhZjBm
|
14
|
+
MzRkODEzNWFhOGVlM2Q0MjEyMjg2MmNkMThkMDVjY2JlM2I5NTZiYTViNzA3
|
15
|
+
NzExZmNiNDM2N2NmZjNlZGM2N2MxN2Q1OGYyZGVjN2Y1MGJhMmY=
|
data/lib/knife-attribute/set.rb
CHANGED
@@ -40,7 +40,7 @@ module KnifeAttribute
|
|
40
40
|
def set_attribute(target)
|
41
41
|
begin
|
42
42
|
new_value = Chef::JSONCompat.from_json(value)
|
43
|
-
rescue
|
43
|
+
rescue
|
44
44
|
new_value = value
|
45
45
|
end
|
46
46
|
new_attribute = attribute.split('.').reverse.inject(new_value) { |result, key| { key => result } }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Fern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|