lib/percheron/graph.rb in percheron-0.7.9 vs lib/percheron/graph.rb in percheron-0.7.10
- old
+ new
@@ -63,11 +63,11 @@
nodes[unit.name] = graphs[unit.pseudo_name].add_nodes(unit.name, pseudo_node_opts(unit))
end
def create_cluster(unit)
return nil if graphs[unit.pseudo_name]
- opts = 'cluster%s' % graphs.keys.count, cluster_opts(unit)
- graphs[unit.pseudo_name] = graph.add_graph(opts)
+ name = 'cluster%s' % graphs.keys.count
+ graphs[unit.pseudo_name] = graph.add_graph(name, cluster_opts(unit))
end
def cluster_opts(unit)
{ label: unit.pseudo_name, style: 'filled', color: 'lightgrey' }
end