# File lib/puppet/parser/templatewrapper.rb, line 69 69: def file=(filename) 70: unless @file = Puppet::Parser::Files.find_template(filename, scope.compiler.environment) 71: raise Puppet::ParseError, "Could not find template '%s'" % filename 72: end 73: 74: # We'll only ever not have a parser in testing, but, eh. 75: if scope.parser 76: scope.parser.watch_file(file) 77: end 78: 79: @string = File.read(file) 80: end