# File lib/puppet/parser/compiler.rb, line 17
17:   def self.compile(node)
18:     new(node).compile.to_resource
19:   rescue => detail
20:     puts detail.backtrace if Puppet[:trace]
21:     raise Puppet::Error, "#{detail} on node #{node.name}"
22:   ensure
23:     # We get these from the environment and only cache them in a thread 
24:     # variable for the duration of the compilation.
25:     Thread.current[:known_resource_types] = nil
26:     Thread.current[:env_module_directories] = nil
27:  end