# File lib/puppet/simple_graph.rb, line 446 446: def write_graph(name) 447: return unless Puppet[:graph] 448: 449: Puppet.settings.use(:graphing) 450: 451: file = File.join(Puppet[:graphdir], "%s.dot" % name.to_s) 452: File.open(file, "w") { |f| 453: f.puts to_dot("name" => name.to_s.capitalize) 454: } 455: end