class Chef::RunList::RunListExpansionFromAPI
Expand a run list from the chef-server API.
Public Instance Methods
fetch_role(name, included_by)
click to toggle source
# 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
rest()
click to toggle source
# File lib/chef/run_list/run_list_expansion.rb, line 175 def rest @rest ||= (source || Chef::REST.new(Chef::Config[:chef_server_url])) end