# File lib/chef/provider/cron/solaris.rb, line 100 def write_crontab(crontab) tempcron = Tempfile.new("chef-cron") tempcron << crontab tempcron.flush tempcron.chmod(0644) status = run_command(:command => "/usr/bin/crontab #{tempcron.path}",:user => @new_resource.user) if(status == 0) @new_resource.updated_by_last_action(true) else @new_resource.updated_by_last_action(false) end tempcron.close! return status end