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

Version Path
solis-0.78.0 examples/read_from_sheet.rb
solis-0.77.0 examples/read_from_sheet.rb
solis-0.76.0 examples/read_from_sheet.rb
solis-0.75.0 examples/read_from_sheet.rb
solis-0.74.0 examples/read_from_sheet.rb
solis-0.73.0 examples/read_from_sheet.rb
solis-0.72.0 examples/read_from_sheet.rb
solis-0.71.0 examples/read_from_sheet.rb
solis-0.70.0 examples/read_from_sheet.rb
solis-0.69.0 examples/read_from_sheet.rb
solis-0.68.0 examples/read_from_sheet.rb
solis-0.67.0 examples/read_from_sheet.rb
solis-0.66.0 examples/read_from_sheet.rb
solis-0.65.0 examples/read_from_sheet.rb
solis-0.64.0 examples/read_from_sheet.rb