diff options
| author | Luke Kanies <luke@madstop.com> | 2009-02-13 00:29:07 -0600 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-02-28 09:16:42 +1100 |
| commit | fa6494b69ad1b01a9c587c86aa1731f4702f5509 (patch) | |
| tree | 5a8aaa6c15aca51fdcb6fde067aa4d7cb73f30e2 /lib/puppet/parser/ast/resource_override.rb | |
| parent | 373d505c381696f880c305a9357a6e50342079b8 (diff) | |
| download | puppet-fa6494b69ad1b01a9c587c86aa1731f4702f5509.tar.gz puppet-fa6494b69ad1b01a9c587c86aa1731f4702f5509.tar.xz puppet-fa6494b69ad1b01a9c587c86aa1731f4702f5509.zip | |
Using the FileCollection where appropriate.
This commit just replaces the :file and :line accessors
with the use of the new FileCollection Lookup module.
This should mean that we've normalized all file names in
a given process, which *might* have drastic RAM improvements.
For initial simplicity, I've gone with a single global
collection of file names, but it's built so it's easy to use
individual file collections instead.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/parser/ast/resource_override.rb')
| -rw-r--r-- | lib/puppet/parser/ast/resource_override.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/ast/resource_override.rb b/lib/puppet/parser/ast/resource_override.rb index 5c4a2410f..f8cf3a81e 100644 --- a/lib/puppet/parser/ast/resource_override.rb +++ b/lib/puppet/parser/ast/resource_override.rb @@ -40,8 +40,8 @@ class Puppet::Parser::AST :type => r.type, :title => r.title, :params => params, - :file => @file, - :line => @line, + :file => file, + :line => line, :source => scope.source, :scope => scope ) |
