UbiquoJobs::Jobs::JobUtils::JobClassMethods

This module contains all the methods that will be accessible as class methods to the Job subclasses

Public Instance Methods

base_default_options() click to toggle source

Return a hash with the default options for all jobs

     # File vendor/plugins/ubiquo_jobs/lib/ubiquo_jobs/jobs/job_utils.rb, line 102
102:         def base_default_options
103:           {:priority => PRIORITIES[:low]}
104:         end
job_default_options() click to toggle source

This can be overwritten by the final job class to set their own default options

     # File vendor/plugins/ubiquo_jobs/lib/ubiquo_jobs/jobs/job_utils.rb, line 107
107:         def job_default_options
108:           {}
109:         end
run_async(options = {}) click to toggle source

Creates a new job and inserts it to the Job Manager, to be run according to the planification options. Returns the created job

    # File vendor/plugins/ubiquo_jobs/lib/ubiquo_jobs/jobs/job_utils.rb, line 92
92:         def run_async(options = {})
93:           UbiquoJobs.manager.add(
94:             self,
95:             self.base_default_options.merge(
96:               self.job_default_options
97:             ).merge(options)
98:           )
99:         end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.