Simplify Remote::Environment

This commit is contained in:
Thibault Jouan committed 2014-07-01 20:02:35 +00:00
1 parent 336003d2d7
commit 8375890c1b
3 files changed
+5 -50

No files matched your search

-13
View File
@@ -6,19 +6,6 @@ module Producer
def string_to_hash(str)
Hash[str.each_line.map { |l| l.chomp.split '=', 2 }]
end
def new_from_string(str)
new string_to_hash str
end
end
extend Forwardable
def_delegators :@variables, :[], :key?
attr_reader :variables
def initialize(variables)
@variables = variables
end
end
end