Add Env#output with $stdout as default

This commit is contained in:
Thibault Jouan
2013-08-04 20:24:19 +00:00
parent e6c14f1903
commit 0cccbc8dde
2 changed files with 20 additions and 0 deletions

View File

@@ -2,12 +2,18 @@ module Producer
module Core
class Env
attr_reader :current_recipe
attr_writer :output
attr_accessor :target
def initialize(recipe = nil)
@current_recipe = recipe
@output = $stdout
@target = nil
end
def output(str)
@output.puts str
end
end
end
end