# File lib/puppet/util/filetype.rb, line 213 213: def read 214: begin 215: output = Puppet::Util.execute(%w{crontab -l}, :uid => @path) 216: return "" if output.include?("can't open your crontab") 217: raise Puppet::Error, "User %s not authorized to use cron" % @path if output.include?("you are not authorized to use cron") 218: return output 219: rescue => detail 220: raise Puppet::Error, "Could not read crontab for %s: %s" % [@path, detail] 221: end 222: end