knife-attribute 1.0.4 → 1.1.0
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/README.md +6 -3
- data/lib/knife-attribute/node/get.rb +9 -0
- data/lib/knife-attribute/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e286139b959f152eb26bdf541c7c9ae60073af2
|
|
4
|
+
data.tar.gz: f9588a6519efa60017fd80d77ff992106206e992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a332936fd5834e97122aa651495e8e78e08ed9b77496fa0cd03c01f739182d4b14797cfd1e70b4011c734c3ea834c9eff494f93c2fa9c89b0f536cbcf1b2e54b
|
|
7
|
+
data.tar.gz: 8d700680636f28a814f14562dae0976a92a74e730aaba4b76834dfeeb8c8874be9f3bd4ebe8459ff04bd76c0b938daffde3841f3a30e352285b9ca11d23f99e8
|
data/README.md
CHANGED
|
@@ -10,10 +10,13 @@ Install via rubygems:
|
|
|
10
10
|
gem install knife-attribute
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Or for more recent Chef or ChefDK installations:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
```bash
|
|
16
|
+
chef gem install knife-attribute
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
17
20
|
|
|
18
21
|
To work with attributes of type `default`, `normal` or `override`, use the
|
|
19
22
|
`-t TYPE` flag (the default type if unspecified is `normal` for `nodes`, and
|
|
@@ -4,6 +4,15 @@ module KnifeAttribute
|
|
|
4
4
|
include KnifeAttribute::Node::Helpers
|
|
5
5
|
include KnifeAttribute::Get
|
|
6
6
|
|
|
7
|
+
def self.attribute_type_map
|
|
8
|
+
{
|
|
9
|
+
default: :default_attrs,
|
|
10
|
+
normal: :normal_attrs,
|
|
11
|
+
override: :override_attrs,
|
|
12
|
+
automatic: :automatic_attrs,
|
|
13
|
+
}
|
|
14
|
+
end
|
|
15
|
+
|
|
7
16
|
banner 'knife node attribute get NODE PERIOD.SEPARATED.ATTRIBUTE (options)'
|
|
8
17
|
|
|
9
18
|
end
|
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.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Fern
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef
|
|
@@ -106,9 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
108
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 2.
|
|
109
|
+
rubygems_version: 2.6.11
|
|
110
110
|
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: Manipulate Chef attributes via Knife
|
|
113
113
|
test_files: []
|
|
114
|
-
has_rdoc:
|