Fix coding standards

This commit is contained in:
Thibault Jouan
2015-05-12 15:02:44 +00:00
parent 658e333420
commit c8b685b8a3
8 changed files with 22 additions and 13 deletions

View File

@@ -52,13 +52,20 @@ module Producer
@actions << self.class.evaluate(@env, name, *args, &block)
end
def ask(question, choices, prompter: Prompter.new(@env.input, @env.output))
def ask(question, choices, prompter: build_prompter)
prompter.prompt(question, choices)
end
def template(path, variables = {})
Template.new(path).render variables
end
private
def build_prompter
Prompter.new(@env.input, @env.output)
end
end
end
end