From 2ba03364309c2347ba4e5bf7dd815beef7563b7b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 6 Nov 2008 12:14:05 -0600 Subject: Removing the PGraph class and subsuming it into SimpleGraph. This class is a holdover from when I was using GRATR, and it's obsolete now. Signed-off-by: Luke Kanies --- lib/puppet/util/graph.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/util/graph.rb') diff --git a/lib/puppet/util/graph.rb b/lib/puppet/util/graph.rb index d1ef36f8e..fc05cafd9 100644 --- a/lib/puppet/util/graph.rb +++ b/lib/puppet/util/graph.rb @@ -2,7 +2,7 @@ # Copyright (c) 2006. All rights reserved. require 'puppet' -require 'puppet/pgraph' +require 'puppet/simple_graph' # A module that handles the small amount of graph stuff in Puppet. module Puppet::Util::Graph @@ -12,7 +12,7 @@ module Puppet::Util::Graph def to_graph(graph = nil, &block) # Allow our calling function to send in a graph, so that we # can call this recursively with one graph. - graph ||= Puppet::PGraph.new + graph ||= Puppet::SimpleGraph.new self.each do |child| unless block_given? and ! yield(child) -- cgit