Sha256: 344ac5eb0f6686ab06e1490d6ac126bde03147b67e64cda2485f0002823d35ca
Contents?: true
Size: 1000 Bytes
Versions: 15
Compression:
Stored size: 1000 Bytes
Contents
# $LOAD_PATH << '.' << './lib' require 'bundler' Bundler.require require 'solis' Solis::ConfigFile.path = Dir.pwd sheet_key = Solis::ConfigFile[:solis][:env][:graph_prefix].to_sym key = Solis::ConfigFile[:key] s = Solis::Shape::Reader::Sheet.read(key, Solis::ConfigFile[:sheets][sheet_key], from_cache: false) File.open("./data/#{sheet_key}.sql", 'wb') { |f| f.puts s[:sql] } File.open("./data/#{sheet_key}.json", 'wb') { |f| f.puts s[:inflections] } File.open("./data/#{sheet_key}_shacl.ttl", 'wb') { |f| f.puts s[:shacl] } File.open("./data/#{sheet_key}_schema.ttl", 'wb') { |f| f.puts s[:schema] } File.open("./data/#{sheet_key}.puml", 'wb') { |f| f.puts s[:plantuml] } File.open("./data/#{sheet_key}_erd.puml", 'wb') { |f| f.puts s[:plantuml_erd] } #https://plantuml.com/elk `plantuml -tsvg ./data/#{sheet_key}.puml` `gm convert ./data/#{sheet_key}.svg ./data/#{sheet_key}.png` `plantuml -tsvg ./data/#{sheet_key}_erd.puml` `gm convert ./data/#{sheet_key}_erd.svg ./data/#{sheet_key}_erd.png`
Version data entries
15 entries across 15 versions & 1 rubygems