diff options
author | David Underwood <david.underwood@jadedpixel.com> | 2013-06-28 12:37:52 -0400 |
---|---|---|
committer | David Underwood <david.underwood@jadedpixel.com> | 2013-06-28 12:37:52 -0400 |
commit | 86aac07d890c6ec87d9486e9580ecc87bc5dab26 (patch) | |
tree | 4f4183733b3140adde432a893953837a26f5e7ac /lib | |
parent | 7b2a1e7cbd4bfc7cb256b4d374906ab90ad4360c (diff) |
Yo dawg, I heard you liked jobs so we added recursive loading to your job loader so you can have job subfolders in the job folder that contain jobs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dashing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dashing.rb b/lib/dashing.rb index 34e2cb5..dc62395 100644 --- a/lib/dashing.rb +++ b/lib/dashing.rb @@ -141,5 +141,5 @@ Dir[File.join(settings.root, 'lib', '**', '*.rb')].each {|file| require file } {}.to_json # Forces your json codec to initialize (in the event that it is lazily loaded). Does this before job threads start. job_path = ENV["JOB_PATH"] || 'jobs' -files = Dir[File.join(settings.root, job_path, '/*.rb')] +files = Dir[File.join(settings.root, job_path, '**', '/*.rb')] files.each { |job| require(job) } |