125: def evaluate
126:
127: Puppet::Util::Log.newdestination(@report)
128:
129: prepare
130:
131: Puppet.info "Applying configuration version '#{catalog.version}'" if catalog.version
132:
133: begin
134: @sorted_resources.each do |resource|
135: next if stop_processing?
136: if resource.is_a?(Puppet::Type::Component)
137: Puppet.warning "Somehow left a component in the relationship graph"
138: next
139: end
140: ret = nil
141: seconds = thinmark do
142: ret = eval_resource(resource)
143: end
144:
145: resource.info "Evaluated in %0.2f seconds" % seconds if Puppet[:evaltrace] and @catalog.host_config?
146: ret
147: end
148: ensure
149:
150: Puppet::Util::Log.close(@report)
151: end
152:
153: Puppet.debug "Finishing transaction #{object_id}"
154: end