Rename Worker class as Interpreter

This commit is contained in:
Thibault Jouan
2013-08-16 19:30:51 +00:00
parent 5a4c8c02bc
commit e4a4211a7b
5 changed files with 20 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ module Producer
def run!
check_arguments!
worker.process recipe.tasks
interpreter.process recipe.tasks
end
def check_arguments!
@@ -27,8 +27,8 @@ module Producer
@recipe ||= Recipe.evaluate_from_file(@arguments.first, env)
end
def worker
@worker ||= Worker.new
def interpreter
@interpreter ||= Interpreter.new
end
private

View File

@@ -1,6 +1,6 @@
module Producer
module Core
class Worker
class Interpreter
def process(tasks)
tasks.each { |t| process_task t }
end