diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-11 17:33:12 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-11 17:33:12 -0600 |
| commit | e247b56d9941b4a636d3a3d9935d6b9cd9b199ea (patch) | |
| tree | 97bf0cff97633125ed2fd76b14b8555723b296f3 /lib/puppet/parser/ast | |
| parent | 6a4cf6c978e8c8aebba4ed0f16d3de7bb31a0ce0 (diff) | |
| download | puppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.tar.gz puppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.tar.xz puppet-e247b56d9941b4a636d3a3d9935d6b9cd9b199ea.zip | |
Changing some methods in the Compile class to
be more internally consistent (switched store_resource
to add_resource, and store_override to add_override).
Diffstat (limited to 'lib/puppet/parser/ast')
| -rw-r--r-- | lib/puppet/parser/ast/definition.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/parser/ast/resource.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/parser/ast/resource_override.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/definition.rb b/lib/puppet/parser/ast/definition.rb index e3f6414c3..992bb1f5e 100644 --- a/lib/puppet/parser/ast/definition.rb +++ b/lib/puppet/parser/ast/definition.rb @@ -31,7 +31,7 @@ class Puppet::Parser::AST::Definition < Puppet::Parser::AST::Branch scope.catalog.tag(*resource.tags) - scope.compile.store_resource(scope, resource) + scope.compile.add_resource(scope, resource) return resource end diff --git a/lib/puppet/parser/ast/resource.rb b/lib/puppet/parser/ast/resource.rb index 606beb537..2dadf9ed6 100644 --- a/lib/puppet/parser/ast/resource.rb +++ b/lib/puppet/parser/ast/resource.rb @@ -51,7 +51,7 @@ class Resource < AST::ResourceReference # And then store the resource in the compile. # At some point, we need to switch all of this to return # objects instead of storing them like this. - scope.compile.store_resource(scope, obj) + scope.compile.add_resource(scope, obj) obj end }.reject { |obj| obj.nil? } diff --git a/lib/puppet/parser/ast/resource_override.rb b/lib/puppet/parser/ast/resource_override.rb index d15f68608..db0986a8e 100644 --- a/lib/puppet/parser/ast/resource_override.rb +++ b/lib/puppet/parser/ast/resource_override.rb @@ -42,7 +42,7 @@ class Puppet::Parser::AST # Now we tell the scope that it's an override, and it behaves as # necessary. - scope.compile.store_override(obj) + scope.compile.add_override(obj) obj end |
