diff options
author | Luke Kanies <luke@madstop.com> | 2008-01-07 22:19:18 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-01-07 22:19:18 -0600 |
commit | fe9b453650755e66e29eca259075e2e7245a5219 (patch) | |
tree | 419bc1c919e64d760baf79f46b7585c03904a1e4 /lib/puppet/parser | |
parent | b7b11bd4858a4d6dd0661aa7c546d03b4a85ca7d (diff) | |
parent | 40addcd1920b0fa2f558c415e65ea665bac812f9 (diff) | |
download | puppet-fe9b453650755e66e29eca259075e2e7245a5219.tar.gz puppet-fe9b453650755e66e29eca259075e2e7245a5219.tar.xz puppet-fe9b453650755e66e29eca259075e2e7245a5219.zip |
Merge branch '0.24.x' into no_global_resources
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/compile.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/puppet/parser/compile.rb b/lib/puppet/parser/compile.rb index fdd0cbcf2..f76103a28 100644 --- a/lib/puppet/parser/compile.rb +++ b/lib/puppet/parser/compile.rb @@ -1,10 +1,6 @@ # Created by Luke A. Kanies on 2007-08-13. # Copyright (c) 2007. All rights reserved. -require 'puppet/external/gratr/digraph' -require 'puppet/external/gratr/import' -require 'puppet/external/gratr/dot' - require 'puppet/node' require 'puppet/node/catalog' require 'puppet/util/errors' @@ -122,9 +118,12 @@ class Puppet::Parser::Compile classes.each do |name| # If we can find the class, then make a resource that will evaluate it. if klass = scope.findclass(name) + found << name and next if class_scope(klass) + # Create a resource to model this class, and then add it to the list # of resources. resource = Puppet::Parser::Resource.new(:type => "class", :title => klass.classname, :scope => scope, :source => scope.source) + store_resource(scope, resource) # If they've disabled lazy evaluation (which the :include function does), @@ -417,7 +416,7 @@ class Puppet::Parser::Compile @tags = [] # A graph for maintaining scope relationships. - @scope_graph = GRATR::Digraph.new + @scope_graph = Puppet::SimpleGraph.new # For maintaining the relationship between scopes and their resources. @catalog = Puppet::Node::Catalog.new(@node.name) |