diff options
author | Luke Kanies <luke@madstop.com> | 2007-08-25 15:54:06 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-08-25 15:54:06 -0500 |
commit | 37f0eed9657810c1b9e1d6383e6d6ebb027aff2f (patch) | |
tree | 4a99038864044be35e38cd52bba495883cc36344 /lib/puppet/parser/scope.rb | |
parent | deb0107ed945c25776d10f9e9b9d721b69ec3478 (diff) | |
download | puppet-37f0eed9657810c1b9e1d6383e6d6ebb027aff2f.tar.gz puppet-37f0eed9657810c1b9e1d6383e6d6ebb027aff2f.tar.xz puppet-37f0eed9657810c1b9e1d6383e6d6ebb027aff2f.zip |
Renaming the "configuration" object to "compile", because it is only a transitional object and I want the real "configuration" object to be the thing that I pass from the server to the client; it will be a subclass of GRATR::Digraph.
Diffstat (limited to 'lib/puppet/parser/scope.rb')
-rw-r--r-- | lib/puppet/parser/scope.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 9e6739c53..396cce888 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -17,14 +17,14 @@ class Puppet::Parser::Scope include Puppet::Util::Errors attr_accessor :parent, :level, :parser, :source attr_accessor :name, :type, :base, :keyword - attr_accessor :top, :translated, :exported, :virtual, :configuration + attr_accessor :top, :translated, :exported, :virtual, :compile # Proxy accessors def host - @configuration.node.name + @compile.node.name end def interpreter - @configuration.interpreter + @compile.interpreter end # Is the value true? This allows us to control the definition of truth @@ -56,9 +56,9 @@ class Puppet::Parser::Scope end end - # Retrieve a given class scope from the configuration. + # Retrieve a given class scope from the compile. def class_scope(klass) - configuration.class_scope(klass) + compile.class_scope(klass) end # Are we the top scope? @@ -89,7 +89,7 @@ class Puppet::Parser::Scope end def findresource(string, name = nil) - configuration.findresource(string, name) + compile.findresource(string, name) end # Initialize our new scope. Defaults to having no parent. @@ -201,7 +201,7 @@ class Puppet::Parser::Scope # Create a new scope and set these options. def newscope(options = {}) - configuration.newscope(self, options) + compile.newscope(self, options) end # Is this class for a node? This is used to make sure that @@ -216,7 +216,7 @@ class Puppet::Parser::Scope # than doing lots of queries. def parent unless defined?(@parent) - @parent = configuration.parent(self) + @parent = compile.parent(self) end @parent end @@ -245,7 +245,7 @@ class Puppet::Parser::Scope raise Puppet::DevError, "Got a %s with no fully qualified name" % klass.class end - @configuration.class_set(name, self) + @compile.class_set(name, self) else raise Puppet::DevError, "Invalid class %s" % klass.inspect end @@ -258,7 +258,7 @@ class Puppet::Parser::Scope # Add a new object to our object table and the global list, and do any necessary # checks. def setresource(resource) - @configuration.store_resource(self, resource) + @compile.store_resource(self, resource) # Mark the resource as virtual or exported, as necessary. if self.exported? @@ -274,7 +274,7 @@ class Puppet::Parser::Scope # exist, then cache the override in a global table, so it can be flushed # at the end. def setoverride(resource) - @configuration.store_override(resource) + @compile.store_override(resource) end # Set defaults for a type. The typename should already be downcased, |