Commit b5e481cc authored by Simon Delamare's avatar Simon Delamare
Browse files

[dev] Add servers part to Ref API generator

parent 7a72a538
......@@ -130,6 +130,18 @@ global_hash["sites"].each do |site_uid, site|
write_json(pdu_path.join("#{pdu_uid}.json"), pdu)
end if site.key?("pdus")
#
# Write servers info
#
servers_path = site_path.join("servers")
servers_path.mkpath()
site["servers"].each do |server_uid, server|
server["type"] = "server"
server["uid"] = server_uid
write_json(servers_path.join("#{server_uid}.json"), server)
end if site.key?("servers")
#
# Write network info
#
......
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