Attach our env to the worker from the CLI

This commit is contained in:
Thibault Jouan
2014-05-19 23:02:23 +00:00
parent 024ab7eba0
commit 7cffa34442
4 changed files with 52 additions and 12 deletions

View File

@@ -1,6 +1,12 @@
module Producer
module Core
class Worker
attr_accessor :env
def initialize(env)
@env = env
end
def process(tasks)
tasks.each { |t| process_task t }
end