Class: Jujube::JobLoader
- Inherits:
-
Object
- Object
- Jujube::JobLoader
- Defined in:
- lib/jujube/job_loader.rb
Overview
Loads job definitions from a set of files and/or directories.
Instance Method Summary collapse
-
#load_jobs(*pathnames) ⇒ Object
Load job definitions from one or more files and/or directories.
Instance Method Details
#load_jobs(*pathnames) ⇒ Object
Load job definitions from one or more files and/or directories.
The job definition files are loaded as Ruby files; it is expected that will make use of the DSL#job DSL function, but they can contain other Ruby code as well.
the job definitions.
14 15 16 17 18 19 20 |
# File 'lib/jujube/job_loader.rb', line 14 def load_jobs(*pathnames) Job.all_defined_during do pathnames.each do |path| load_one(path) end end end |