Class Chef::WebUIUser
In: lib/chef/webui_user.rb
Parent: Object

Methods

Included Modules

Chef::Mixin::ParamsValidate

Constants

DESIGN_DOCUMENT = { "version" => 3, "language" => "javascript", "views" => { "all" => { "map" => <<-EOJS function(doc) { if (doc.chef_type == "webui_user") { emit(doc.name, doc); } } EOJS

Attributes

admin  [RW] 
couchdb  [RW] 
couchdb_id  [R] 
couchdb_rev  [R] 
name  [RW] 
openid  [RW] 
password  [R] 
salt  [R] 
validated  [RW] 

Public Class methods

return true if an admin user exists. this is pretty expensive (O(n)), should think of a better way (nuo)

List all the Chef::WebUIUser objects in the CouchDB. If inflate is set to true, you will get the full list of all registration objects. Otherwise, you‘ll just get the IDs

Load an WebUIUser by name from CouchDB

Whether or not there is an WebUIUser with this key.

Load a User by name

Public Instance methods

Remove this WebUIUser from the CouchDB

Save this WebUIUser to the CouchDB

Create the WebUIUser via the REST API

Remove this WebUIUser via the REST API

Save this WebUIUser via the REST API

Set the password for this object.

Serialize this object as a hash

Protected Instance methods

[Validate]