# File lib/puppet/util/filetype.rb, line 105 105: def write(text) 106: require "tempfile" 107: tf = Tempfile.new("puppet") 108: tf.print text; tf.flush 109: FileUtils.cp(tf.path, @path) 110: tf.close 111: # If SELinux is present, we need to ensure the file has its expected context 112: set_selinux_default_context(@path) 113: end