Sha256: 503827db52ffd810a89ad1df519c76c993340b3d954417fa7de338b8a465bcbd
Contents?: true
Size: 431 Bytes
Versions: 18
Compression:
Stored size: 431 Bytes
Contents
module Roqua # Include global rake tasks class Railtie < Rails::Railtie rake_tasks do namespace :roqua do desc 'Check if cron needs to run on this instance of the application' task :cron_ping do ActiveRecord::Base.establish_connection require_relative Rails.root.join('config', 'schedule.rb') Roqua::Scheduling::Scheduler.new.ping end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems