class EXEL::Processors::RunProcessor
Implements the run
instruction.
Public Class Methods
new(context)
click to toggle source
Requires context[:job]
to contain the name of the job to be run.
# File lib/exel/processors/run_processor.rb, line 8 def initialize(context) @context = context end
Public Instance Methods
process(_block = nil)
click to toggle source
Runs the specified job with the current context
# File lib/exel/processors/run_processor.rb, line 13 def process(_block = nil) EXEL::Job.run(@context[:job], @context) end