Module: Arq::Action::ClassMethods

Defined in:
lib/arq/action.rb

Overview

Methods and fields exposed to configure the action.

Instance Method Summary collapse

Instance Method Details

#call(ctx = Arq::Context.new) ⇒ Object

Runs the stored block with variables from the provided context.



20
21
22
23
24
25
26
27
# File 'lib/arq/action.rb', line 20

def call(ctx = Arq::Context.new)
  ctx = transform_input_context(ctx)

  inst = new(ctx)
  inst.run

  ctx
end

#params_listObject



29
30
31
# File 'lib/arq/action.rb', line 29

def params_list
  @params_list ||= []
end

#returns_listObject



33
34
35
# File 'lib/arq/action.rb', line 33

def returns_list
  @returns_list ||= []
end

#run_blockObject



37
38
39
# File 'lib/arq/action.rb', line 37

def run_block
  @run_block ||= nil
end