Class: Workling::Remote::Runners::NotRemoteRunner

Inherits:
Base
  • Object
show all
Defined in:
lib/workling/remote/runners/not_remote_runner.rb

Instance Method Summary collapse

Methods inherited from Base

#dispatch!, #logger

Instance Method Details

#run(clazz, method, options = {}) ⇒ Object

directly dispatches to the worker method, in-process. options are first marshalled then dumped in order to simulate the sideeffects of a remote call.



14
15
16
17
18
19
# File 'lib/workling/remote/runners/not_remote_runner.rb', line 14

def run(clazz, method, options = {})
  options = Marshal.load(Marshal.dump(options)) # get this to behave more like the remote runners
  dispatch!(clazz, method, options) 
  
  return nil # nada. niente.
end