mirror of
https://github.com/plashchynski/crono.git
synced 2026-11-19 15:08:17 +01:00
Fix crono:clean task
This commit is contained in:
1 parent
c8f9ff4e34
commit
8174f86407
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
module Crono
|
||||
def self.load_cronotab
|
||||
cronotab_path = ENV['CRONOTAB'] || (defined?(Rails) &&
|
||||
File.join(Rails.root, cronotab_path))
|
||||
File.join(Rails.root, Config::CRONOTAB))
|
||||
fail 'No cronotab defined' unless cronotab_path
|
||||
puts "Load cronotab #{cronotab_path}"
|
||||
require cronotab_path
|
||||
|
||||
Reference in new issue
Block a user