From cf334b545fe29b40a331951a7a5689454887e840 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Tue, 3 Mar 2015 16:48:48 +0200 Subject: [PATCH] Add debug info --- lib/crono/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crono/cli.rb b/lib/crono/cli.rb index ef0bb8b..8bdd54e 100644 --- a/lib/crono/cli.rb +++ b/lib/crono/cli.rb @@ -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