diff options
author | Luke Kanies <luke@madstop.com> | 2008-11-06 12:14:05 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-11-06 12:14:05 -0600 |
commit | 2ba03364309c2347ba4e5bf7dd815beef7563b7b (patch) | |
tree | 3420007a97cfcad85a41eba0bfcd5d17117effcb /lib/puppet/util/graph.rb | |
parent | e92c1cc724c489d9328567dfa082221a67184c92 (diff) | |
download | puppet-2ba03364309c2347ba4e5bf7dd815beef7563b7b.tar.gz puppet-2ba03364309c2347ba4e5bf7dd815beef7563b7b.tar.xz puppet-2ba03364309c2347ba4e5bf7dd815beef7563b7b.zip |
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 <luke@madstop.com>
Diffstat (limited to 'lib/puppet/util/graph.rb')
-rw-r--r-- | lib/puppet/util/graph.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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) |