diff options
author | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2013-07-08 04:43:27 -0700 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2013-07-08 04:43:27 -0700 |
commit | 326c5b9c9956fd832b850d60982a677660680a7c (patch) | |
tree | 4f4183733b3140adde432a893953837a26f5e7ac /lib | |
parent | 7b2a1e7cbd4bfc7cb256b4d374906ab90ad4360c (diff) | |
parent | 86aac07d890c6ec87d9486e9580ecc87bc5dab26 (diff) |
Merge pull request #156 from davefp/recursive_job_loading
Recursively load 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) } |