lib/power_stencil/utils/graphviz.rb in power_stencil-0.4.2 vs lib/power_stencil/utils/graphviz.rb in power_stencil-0.4.3
- old
+ new
@@ -9,12 +9,17 @@
entities_to_process = unless config[:graphviz][:show_config]
entities.reject {|e| e.type == :project_config}
else
entities
end
- graph_entities_to_file entities_to_process,
- output_file_name: filename,
- file_type: config[:graphviz][:file_type] do |graph, cache|
+
+ graph_options = {
+ output_file_name: filename,
+ graph_type: config[:graphviz][:graph_type],
+ file_type: config[:graphviz][:file_type]
+ }
+
+ graph_entities_to_file entities_to_process, graph_options do |graph, cache|
graph[:label] = config[:graphviz][:label]
graph[:labelloc] = config[:graphviz][:labelloc]
graph.each_node do |node_name|
node = graph.get_node node_name
entity = cache[:by_node][node]
\ No newline at end of file