Rename to Crono

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 13:51:40 +02:00
parent 6b185c44ac
commit 3652e9525a
18 changed files with 45 additions and 45 deletions

View File

@@ -0,0 +1,12 @@
module Crono
module Generators
class InstallGenerator < ::Rails::Generators::Base
desc "Installs crono and generates the necessary configuration files"
source_root File.expand_path("../templates", __FILE__)
def copy_config
template 'crono.rb.erb', 'config/initializers/crono.rb'
end
end
end
end

View File

@@ -0,0 +1,9 @@
# Crono configuration file
#
# Here you can specify periodic jobs and their schedule.
# You can specify a periodic job as a ActiveJob class in `app/jobs/`
# Actually you can use any class. The only requirement is that
# the class should implement a method `perform` without arguments.
#
# Crono.perform(TestJob).every 2.days, at: "15:30"
#