Class: Waylon::RSpec::TestWorker

Inherits:
Object
  • Object
show all
Defined in:
lib/waylon/rspec/test_worker.rb

Overview

A TestWorker to run queued Skills

Class Method Summary collapse

Class Method Details

.handle(queue) ⇒ Object

Instructs the worker to grab an item off the Queue and run it

Parameters:

  • queue (Queue)

    The queue that contains work to be done



9
10
11
12
# File 'lib/waylon/rspec/test_worker.rb', line 9

def self.handle(queue)
  skill, details = queue.pop
  skill.perform(details)
end