Class: QPush::Server::Loader

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.callObject

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

#callObject

Entrypoint to load all jobs.



16
17
18
19
# File 'lib/qpush/server/loader.rb', line 16

def call
  remove_old
  load_jobs
end