Class: HybridPlatformsConductor::Topographer::Plugins::Svg

Inherits:
Graphviz show all
Defined in:
lib/hybrid_platforms_conductor/topographer/plugins/svg.rb

Overview

Output in Graphviz format

Instance Method Summary collapse

Methods inherited from HybridPlatformsConductor::Topographer::Plugin

#initialize

Constructor Details

This class inherits a constructor from HybridPlatformsConductor::Topographer::Plugin

Instance Method Details

#write_graph(file_name) ⇒ Object

Output the nodes graph in a file

API
  • This method is mandatory.

Parameters
  • file_name (String): The file name for output



17
18
19
20
21
22
# File 'lib/hybrid_platforms_conductor/topographer/plugins/svg.rb', line 17

def write_graph(file_name)
  gv_file_name = "#{file_name}.gv"
  super(gv_file_name)
  system "dot -Tsvg #{gv_file_name} -o #{file_name}"
  File.unlink gv_file_name
end