Chef::RunList::RunListExpansion
Expand a run list from the chef-server API.
# File lib/chef/run_list/run_list_expansion.rb, line 179 def fetch_role(name, included_by) rest.get_rest("roles/#{name}") rescue Net::HTTPServerException => e if e.message == '404 "Not Found"' role_not_found(name, included_by) else raise end end
# File lib/chef/run_list/run_list_expansion.rb, line 175 def rest @rest ||= (source || Chef::REST.new(Chef::Config[:chef_server_url])) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.