2014-07-01 20:02:35 +00:00

14 lines
246 B
Ruby

module Producer
module Core
class Remote
class Environment
class << self
def string_to_hash(str)
Hash[str.each_line.map { |l| l.chomp.split '=', 2 }]
end
end
end
end
end
end