Skip to content

Instantly share code, notes, and snippets.

@ampledata
Created October 1, 2012 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ampledata/3814799 to your computer and use it in GitHub Desktop.
Save ampledata/3814799 to your computer and use it in GitHub Desktop.
minute = if new_resource.minute
new_resource.minute
else
'*/5'
end
cron new_resource.name do
only_if { valid_node }
minute minute
command cron_cmd
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment