README.md in ridley-1.0.0.rc1 vs README.md in ridley-1.0.0.rc2
- old
+ new
@@ -182,20 +182,20 @@
## Data Bag Resource
A data bag is managed exactly the same as any other Chef resource
ridley = Ridley.new(...)
- ridley.data_bag.create("ridley-test")
+ ridley.data_bag.create(name: "ridley-test")
You can create, delete, update, or retrieve a data bag exactly how you would expect if you read through the
Manipulating Chef Resources portion of this document.
Unlike a role, node, client, or environment, a data bag is a container for other resources. These other resources are Data Bag Items. Data Bag Items behave slightly different than other resources. Data Bag Items can have an abritrary attribute hash filled with any key values that you would like. The one exception is that every Data Bag Item __requires__ an 'id' key and value. This identifier is the name of the Data Bag Item.
### Creating a Data Bag Item
ridley = Ridley.new(...)
- data_bag = ridley.data_bag.create("ridley-test")
+ data_bag = ridley.data_bag.create(name: "ridley-test")
data_bag.item.create(id: "appconfig", host: "reset.local", user: "jamie") #=>
#<Ridley::DataBagItemObject: chef_id:appconfig, host="reset.local", user="jamie">
## Environment Resource