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.



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

def initialize(context)
  @context = context
end

Instance Method Details

#process(_block = nil) ⇒ Object

Runs the specified job with the current context



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

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