knife-attribute 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/knife-attribute/set.rb +1 -1
- data/lib/knife-attribute/version.rb +1 -1
- metadata +5 -19
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZmY1MThkMjg4YjljZWNkNDUzNTJhYjAzZGRkZjIxNDJiYzM0ZjAwZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2Q1NDI1NjQ5MmExNDhkNzc0YWNhMmEwNTgxOTVkNzAxMDYwOGExMw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjAwYzQ4MzY5ZjMwNWY1YzI4NjIyYjRlYzkyZmEzOGRhZjJjYTYzNTJiNDli
|
10
|
+
NzNiYjc2YzI2MGY4MWJjNmVlMmI3Mzg4OTUwMjg5Y2EzMTRlOGU1NDEzMzc4
|
11
|
+
OTlmZWZhZjI5MGQzYmFlODEwMDgyN2QyNWUyYWUzZGQ2OGY1MWM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGM4M2E5MjVmOWFiYjQwOWNkNjM4ZTdmY2IwN2Y3MWFiMGJiYWJkNjkyMjI4
|
14
|
+
N2UzYWEyYWRhMjRjZjI3OWJkYmNiOWI2YzE4ZjAwNDA0NDNjZThiOWViMDYz
|
15
|
+
MWEyZWNlODFlYjE5MWNlYTM3MWNlYmQwZWU4YjAxMDQ2M2VmMjQ=
|
data/lib/knife-attribute/set.rb
CHANGED
@@ -44,7 +44,7 @@ module KnifeAttribute
|
|
44
44
|
new_value = value
|
45
45
|
end
|
46
46
|
new_attribute = attribute.split('.').reverse.inject(new_value) { |result, key| { key => result } }
|
47
|
-
|
47
|
+
Chef::Mixin::DeepMerge.hash_only_merge!(target, new_attribute)
|
48
48
|
|
49
49
|
if entity.save
|
50
50
|
ui.info("Successfully set #{entity_type.to_s} #{ui.color(entity_name, :cyan)} attribute #{ui.color(attribute, :cyan)} to: #{ui.color(new_value.inspect, :green)}")
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Peter Fern
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: chef
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -96,32 +89,25 @@ files:
|
|
96
89
|
homepage: https://github.com/pdf/knife-attribute
|
97
90
|
licenses:
|
98
91
|
- MIT
|
92
|
+
metadata: {}
|
99
93
|
post_install_message:
|
100
94
|
rdoc_options: []
|
101
95
|
require_paths:
|
102
96
|
- lib
|
103
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
98
|
requirements:
|
106
99
|
- - ! '>='
|
107
100
|
- !ruby/object:Gem::Version
|
108
101
|
version: '0'
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
hash: -143392958939256616
|
112
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
103
|
requirements:
|
115
104
|
- - ! '>='
|
116
105
|
- !ruby/object:Gem::Version
|
117
106
|
version: '0'
|
118
|
-
segments:
|
119
|
-
- 0
|
120
|
-
hash: -143392958939256616
|
121
107
|
requirements: []
|
122
108
|
rubyforge_project:
|
123
|
-
rubygems_version:
|
109
|
+
rubygems_version: 2.2.2
|
124
110
|
signing_key:
|
125
|
-
specification_version:
|
111
|
+
specification_version: 4
|
126
112
|
summary: Manipulate Chef attributes via Knife
|
127
113
|
test_files: []
|