Skip to content

Visualize a Ruby Application

naraesk edited this page Jan 11, 2019 · 4 revisions

This scenario shows how to visualize a ruby application with Getaviz on Windows. Make sure you have successfully finished the Installation & Setup. Replace USER with your name.

Extractor (Ruby)

  • Clone project git clone https://github.com/prawnpdf/prawn.git
  • Start Ruby command line prompt and navigate to ruby_extractor\bin
    cd C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\ruby_extractor\bin
  • Create a famix model with ruby structure_parser.rb C:\Users\USER\Desktop\prawn-master C:\Users\USER\Desktop\myPrawn.famix

Generator

  • Copy your generated myPrawn.famix to C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\generator\org.svis.generator.run\input\famix
  • Switch to Eclipse and run the following file via right click and Run as org.svis.generator.releng/Famix2RD.launch
  • After successful completion the newly created files can be found here:
    C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\generator\org.svis.generator.run\output
  • metaData.json
  • model.x3d
  • rd
  • rdextended

UI

  • Copy the generated files metaData.json and model.x3d to C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\ui\data\RD bank\model
  • Execute C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\ui\data\RD bank\model\aopt-idmap-sapd.bat
  • Open C:\Users\USER\org-svis-generator-setup-master\git\Getaviz\ui\Index.html