# File lib/puppet/util/filetype.rb, line 112 112: def write(text) 113: require "tempfile" 114: tf = Tempfile.new("puppet") 115: tf.print text; tf.flush 116: FileUtils.cp(tf.path, @path) 117: tf.close 118: # If SELinux is present, we need to ensure the file has its expected context 119: set_selinux_default_context(@path) 120: end