class Chef::Provider::Cron

def write_crontab(crontab)

def write_crontab(crontab)
  write_exception = false
  so = shell_out!("crontab -u #{new_resource.user} -", input: crontab)
rescue => e
  raise Chef::Exceptions::Cron, "Error updating state of #{new_resource.name}, error: #{e}"
end