mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-24 18:31:55 +01:00
Add debug info
This commit is contained in:
@@ -6,7 +6,6 @@ module Crono
|
||||
|
||||
def run
|
||||
load_rails
|
||||
require File.expand_path("config/cronotab.rb")
|
||||
print_banner
|
||||
start_working_loop
|
||||
end
|
||||
@@ -21,9 +20,11 @@ module Crono
|
||||
require 'rails'
|
||||
require File.expand_path("config/environment.rb")
|
||||
::Rails.application.eager_load!
|
||||
require File.expand_path("config/cronotab.rb")
|
||||
end
|
||||
|
||||
def run_job(klass)
|
||||
puts "Perform #{klass}"
|
||||
Thread.new { klass.new.perform }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user