# File lib/puppet/util/filetype.rb, line 206 206: def read 207: output = Puppet::Util.execute(%w{crontab -l}, :uid => @path) 208: return "" if output.include?("can't open your crontab") 209: raise Puppet::Error, "User #{@path} not authorized to use cron" if output.include?("you are not authorized to use cron") 210: return output 211: rescue => detail 212: raise Puppet::Error, "Could not read crontab for #{@path}: #{detail}" 213: end