Class Chef::DataBag
In: lib/chef/data_bag.rb
Parent: Object

Methods

Included Modules

Chef::Mixin::FromFile Chef::Mixin::ParamsValidate Chef::IndexQueue::Indexable

Constants

VALID_NAME = /^[\-[:alnum:]_]+$/
DESIGN_DOCUMENT = { "version" => 2, "language" => "javascript", "views" => { "all" => { "map" => <<-EOJS function(doc) { if (doc.chef_type == "data_bag") { emit(doc.name, doc); } } EOJS

Attributes

couchdb  [RW] 
couchdb_id  [RW] 
couchdb_rev  [RW] 

Public Class methods

List all the Chef::DataBag objects in the CouchDB. If inflate is set to true, you will get the full list of all Roles, fully inflated.

Create a Chef::Role from JSON

Load a Data Bag by name via the RESTful API

Public Instance methods

Remove this Data Bag from CouchDB

Save this Data Bag to the CouchDB

create a data bag via RESTful API

List all the items in this Bag from CouchDB The self.load method does this through the REST API

Save the Data Bag via RESTful API

Serialize this object as a hash

As a string

[Validate]