Class: Chef::RunList::RunListExpansionFromCouchDB

Inherits:
RunListExpansion show all
Defined in:
lib/chef/run_list/run_list_expansion.rb

Overview

Expand a run list from couchdb. Used in chef-server-api

Instance Attribute Summary

Attributes inherited from RunListExpansion

#default_attrs, #environment, #missing_roles_with_including_role, #override_attrs, #recipes, #run_list_items, #run_list_trace, #source

Instance Method Summary collapse

Methods inherited from RunListExpansion

#applied_role?, #apply_role_attributes, #errors, #errors?, #expand, #inflate_role, #initialize, #role_not_found, #roles

Constructor Details

This class inherits a constructor from Chef::RunList::RunListExpansion

Instance Method Details

#couchdbObject


194
195
196
# File 'lib/chef/run_list/run_list_expansion.rb', line 194

def couchdb
  source
end

#fetch_role(name, included_by) ⇒ Object


198
199
200
201
202
# File 'lib/chef/run_list/run_list_expansion.rb', line 198

def fetch_role(name, included_by)
  Chef::Role.cdb_load(name, couchdb)
rescue Chef::Exceptions::CouchDBNotFound
  role_not_found(name, included_by)
end