24 lines
422 B
Ruby
24 lines
422 B
Ruby
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
|
|
|
|
def remote
|
|
@remote ||= Remote.new(target)
|
|
end
|
|
end
|
|
end
|
|
end
|