knife-attribute 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 801477a592366a215906e2b6c862ea4056aeb414
4
- data.tar.gz: 18e096b2aa91fb502701407bd07514da63bc04c9
3
+ metadata.gz: 0e286139b959f152eb26bdf541c7c9ae60073af2
4
+ data.tar.gz: f9588a6519efa60017fd80d77ff992106206e992
5
5
  SHA512:
6
- metadata.gz: 25b8fb4c2589e44daec0913f0a19ba6218895f43704f06f8ea88b1bffeb3ce30682b30b3f0c2dbcda94f7194c8941039710590d341334050a7ecbf22a2c14597
7
- data.tar.gz: fd64f5597c6cdc8746789c27a579ba040d61e76bb2db89613ca94fbb102a33b39e9b4efd0aeab11f7309bfc9314221790ea65dc7d0d07803f6e1a785fd6ec18f
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
- ## Usage
13
+ Or for more recent Chef or ChefDK installations:
14
14
 
15
- In this initial release, only `node attribute set` is implemented, more to
16
- follow in the near future.
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
@@ -1,3 +1,3 @@
1
1
  module KnifeAttribute
2
- VERSION = '1.0.4'
2
+ VERSION = '1.1.0'
3
3
  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
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: 2014-12-30 00:00:00.000000000 Z
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.2.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: