Whenever Web
Installation
Add this line to your application's Gemfile:
gem 'whenever-web'
And then execute:
$ bundle
Usage
Mount the engine in your routes.rb
:
MyApp::Application.routes.draw do
# ...
mount Whenever::Web, at: '/whenever'
# ...
end
And go to /whenever
.
You can add a link to the panel in your views:
= link_to 'Cron Jobs', whenever_path
You can also optionally describe the Cron jobs in schedule.rb
:
require 'whenever/web'
every 1.day, at: '3:00 am' do
desc 'Database Backup'
rake 'db:backup'
end
Contributing
- Fork it (http://github.com/bartoszkopinski/whenever-web/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request