Commit 8607383e authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 5cb63f9a
......@@ -12,20 +12,16 @@ module Gitlab
object = YAML.safe_load(string, [Symbol])
object.map(&Variables.method(:convert_key_value_to_string))
object.map do |variable|
variable[:key] = variable[:key].to_s
variable[:value] = variable[:value].to_s
variable
end
end
def dump(object)
YAML.dump(object)
end
private
def convert_key_value_to_string(variable)
variable[:key] = variable[:key].to_s
variable[:value] = variable[:value].to_s
variable
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment