Skip to content

Instantly share code, notes, and snippets.

@javan
Created December 19, 2010 22:57
Show Gist options
  • Select an option

  • Save javan/747799 to your computer and use it in GitHub Desktop.

Select an option

Save javan/747799 to your computer and use it in GitHub Desktop.
Example schedule file for the Whenever gem.
every 1.day, :at => '2:30pm' do
runner 'Company.grow'
end
every 20.minutes do
command 'cd /home/fetch/fetches && wget http://example.com/latest_file.txt'
end
every :reboot do
rake 'memcached:start'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment