Class: QPush::Server::Loader
- Inherits:
-
Object
- Object
- QPush::Server::Loader
- Defined in:
- lib/qpush/server/loader.rb
Overview
The Loader will ‘require’ all jobs within the users job folder. The job folder is specified in the config.
Class Method Summary collapse
-
.call ⇒ Object
Provides a shortend caller.
Instance Method Summary collapse
-
#call ⇒ Object
Entrypoint to load all jobs.
Class Method Details
.call ⇒ Object
Provides a shortend caller.
9 10 11 12 |
# File 'lib/qpush/server/loader.rb', line 9 def self.call jobs = Loader.new jobs.call end |
Instance Method Details
#call ⇒ Object
Entrypoint to load all jobs.
16 17 18 19 |
# File 'lib/qpush/server/loader.rb', line 16 def call remove_old load_jobs end |