ridley 2.5.0 → 2.5.1
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/CHANGELOG.md +4 -0
- data/README.md +25 -0
- data/lib/ridley/resources/search_resource.rb +1 -1
- data/lib/ridley/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: 7015d6698dd19c93412740e2ff16f5432025e0ef
|
4
|
+
data.tar.gz: 98f72e264ea4832ab085c887e71a001dad03ca35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6513631b259a1909e6624c101b0cf2f64757992b754f8dfb51514e606aefacb6b28ba8720491f457daaccfc81a8f2288cb72e3249fc3470247bfda2412176b2e
|
7
|
+
data.tar.gz: e7a519e2bd14c9ed26be2bf9981e5d44003268589f8e3976ee4552af5d412f34a7d22d5a33e24871919720214fa64c9c71d54714db3ec3096215ee69d09a7e33
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -300,6 +300,31 @@ obj.regenerate_key #=> #<Ridley::ClientObject: chef_id:"jamie", private_key="**H
|
|
300
300
|
Cookbook Resource
|
301
301
|
-----------------
|
302
302
|
|
303
|
+
Cookbooks can be created, listed, updated and deleted as shown in the Manipulating Chef Resources section of this README.
|
304
|
+
|
305
|
+
To find a cookbook, you must provide both its name and version:
|
306
|
+
|
307
|
+
```ruby
|
308
|
+
ridley = Ridley.new(...)
|
309
|
+
ridley.cookbook.find("apache2", "1.6.6")
|
310
|
+
```
|
311
|
+
|
312
|
+
Cookbooks can be downloaded. If no download path is specified, the chosen cookbook will be downloaded to a tmp folder.
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
ridley = Ridley.new(...)
|
316
|
+
ridley.cookbook.download("apache2", "1.6.6", "/path/to/download/cookbook") #=> "/path/to/download/cookbook"
|
317
|
+
ridley.cookbook.download("apache2", "1.6.6") #=> "/tmp/d20140211-6621-kstalp"
|
318
|
+
```
|
319
|
+
|
320
|
+
A cookbook's metadata can be accessed using the `#metadata` method:
|
321
|
+
|
322
|
+
```ruby
|
323
|
+
ridley = Ridley.new(...)
|
324
|
+
apache2 = ridley.cookbook.find("apache2", "1.6.6")
|
325
|
+
apache2.metadata #=> Hashie::Mash
|
326
|
+
```
|
327
|
+
|
303
328
|
Data Bag Resource
|
304
329
|
-----------------
|
305
330
|
|
@@ -166,7 +166,7 @@ module Ridley
|
|
166
166
|
case index.to_sym
|
167
167
|
when :node
|
168
168
|
response[:rows].collect do |item|
|
169
|
-
attributes =
|
169
|
+
attributes = Hashie::Mash.new
|
170
170
|
item[:data].each do |key, value|
|
171
171
|
next if key.to_s == chef_id.to_s
|
172
172
|
attributes.deep_merge!(Hash.from_dotted_path(key, value))
|
data/lib/ridley/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|