Class: EXEL::Processors::RunProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/exel/processors/run_processor.rb

Overview

Implements the run instruction.

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ RunProcessor

Requires context[:job] to contain the name of the job to be run.



8
9
10
# File 'lib/exel/processors/run_processor.rb', line 8

def initialize(context)
  @context = context
end

Instance Method Details

#process(_block = nil) ⇒ Object

Runs the specified job with the current context



13
14
15
# File 'lib/exel/processors/run_processor.rb', line 13

def process(_block = nil)
  EXEL::Job.run(@context[:job], @context)
end