summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@reductivelabs.com>2010-01-04 16:57:59 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49 (patch)
tree9ecb251281d7baf291f18569c1185c1dcc4d4565 /lib/puppet
parent6bf19532710fdb0e5619e00d6656e6b535297247 (diff)
downloadpuppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.tar.gz
puppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.tar.xz
puppet-2c2b3c27e242f7ee99354c7d4f0d2a18d5710f49.zip
Storing per-environment LoadedCode instances
This will soon replace all of the env/parser mungling we have to do. A given process will only be able to have one collection of code per environment in memory. This is somewhat limiting, in theory, but some global means of looking up code collection (LoadedCode instances) must exist for the pure ruby stuff to work. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/parser_support.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/parser_support.rb b/lib/puppet/parser/parser_support.rb
index df89ed794..77ee28f5e 100644
--- a/lib/puppet/parser/parser_support.rb
+++ b/lib/puppet/parser/parser_support.rb
@@ -194,8 +194,8 @@ class Puppet::Parser::Parser
end
def initialize(options = {})
- @loaded_code = options[:loaded_code] || Puppet::Parser::LoadedCode.new
@environment = options[:environment]
+ @loaded_code = options[:loaded_code] || Puppet::Parser::LoadedCode.new(@environment)
initvars()
end