# File lib/puppet/simple_graph.rb, line 431 431: def write_to_graphic_file (fmt='png', dotfile='graph') 432: src = dotfile + '.dot' 433: dot = dotfile + '.' + fmt 434: 435: File.open(src, 'w') {|f| f << self.to_dot << "\n"} 436: 437: system( "dot -T#{fmt} #{src} -o #{dot}" ) 438: dot 439: end