mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-25 10:18:49 +02:00
Merge branch 'master' of github.com:plashchynski/crono
This commit is contained in:
@@ -4,7 +4,6 @@ Crono — Job scheduler for Rails
|
|||||||
[](https://travis-ci.org/plashchynski/crono)
|
[](https://travis-ci.org/plashchynski/crono)
|
||||||
[](https://codeclimate.com/github/plashchynski/crono)
|
[](https://codeclimate.com/github/plashchynski/crono)
|
||||||
[](https://hakiri.io/github/plashchynski/crono/master)
|
[](https://hakiri.io/github/plashchynski/crono/master)
|
||||||
[](https://gitter.im/plashchynski/crono?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
||||||
|
|
||||||
Crono is a time-based background job scheduler daemon (just like Cron) for Ruby on Rails.
|
Crono is a time-based background job scheduler daemon (just like Cron) for Ruby on Rails.
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@ Currently, there is no such thing as Ruby Cron for Rails. Well, there's [Wheneve
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Tested with latest MRI Ruby 2.2+, Rails 4.*, and Rails 5.*.
|
Tested with latest MRI Ruby 2.2+, Rails 4.\*, and Rails 5.\*.
|
||||||
Other versions are untested but might work fine.
|
Other versions are untested but might work fine.
|
||||||
|
|
||||||
|
|
||||||
@@ -77,8 +76,8 @@ Here's an example of a Rake Task within a job:
|
|||||||
```ruby
|
```ruby
|
||||||
# config/cronotab.rb
|
# config/cronotab.rb
|
||||||
require 'rake'
|
require 'rake'
|
||||||
# Be sure to change AppName to your application name!
|
|
||||||
AppName::Application.load_tasks
|
Rails.app_class.load_tasks
|
||||||
|
|
||||||
class Test
|
class Test
|
||||||
def perform
|
def perform
|
||||||
|
|||||||
Reference in New Issue
Block a user