Usage
Ruby on Rails
.schked:
--require config/environment.rbconfig/schedule.rb:
cron "*/30 * * * *", as: "CleanOrphanAttachmentsJob" do
CleanOrphanAttachmentsJob.perform_later
endIf you have a Rails engine with own schedule:
engine-path/lib/foo/engine.rb:
module Foo
class Engine < ::Rails::Engine
initializer "foo" do |app|
Schked.config.paths << root.join("config", "schedule.rb")
end
end
endAnd run Schked:
bundle exec schked startTo show schedule:
bundle exec schked show

