Sha256: bb9a3065871f4ebd08832b522fba420de0ec4349f8b945192828f46251c1cc9d
Contents?: true
Size: 1.11 KB
Versions: 9
Compression:
Stored size: 1.11 KB
Contents
module PoolParty module Resources =begin rdoc == Cron The cron resource will set cron jobs at the intervals you set == Usage has_cron(:name => '...') do # More options. # This block is optional end == Options * <tt>name</tt> The name of the cronjob * <tt>user</tt> The users who owns the cronjob * <tt>command</tt> The cronjob command to run * <tt>minute</tt> Set the minute of the cronjob * <tt>hour</tt> Set the hour of the cronjob * <tt>month</tt> Set the month of the cronjob * <tt>monthday</tt> Set the day of the month of the cronjob * <tt>weekday</tt> Set the weekday of the cronjob, in 0-6 format, where 0 is Sunday == Example has_cron(:name => "report mailer", :minute => "5", :hour => "0", :weekday => 1) do command "/bin/sh /home/user/email_reports.sh" end =end class Cron < Resource default_options( :command => nil, :user => "root", :minute => "*", :hour => "*", :month => "*", :weekday => "*" ) def present :create end def absent :delete end end end end
Version data entries
9 entries across 9 versions & 2 rubygems