Rename Interpreter class as Worker
This commit is contained in:
1 parent
cdc3128727
commit
4c0a7f0fc7
4 files changed
+9
-9
No files matched your search
@@ -28,7 +28,7 @@ module Producer
|
||||
@stdout = stdout
|
||||
end
|
||||
|
||||
def run(worker: Interpreter.new)
|
||||
def run(worker: Worker.new)
|
||||
load_recipe
|
||||
worker.process recipe.tasks
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Producer
|
||||
module Core
|
||||
class Interpreter
|
||||
class Worker
|
||||
def process(tasks)
|
||||
tasks.each { |t| process_task t }
|
||||
end
|
||||
Reference in new issue
Block a user