diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-17 21:03:19 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-17 21:03:19 +0000 |
commit | 50821328ec637a4ec0feb822b86e208b04baae68 (patch) | |
tree | 3882a2c9a4264756b5b551dd6ba38cbd6ba41b52 /lib/puppet/parser/interpreter.rb | |
parent | c205bf6ba79a905c59eb99747ffe674bbaa11481 (diff) | |
download | puppet-50821328ec637a4ec0feb822b86e208b04baae68.tar.gz puppet-50821328ec637a4ec0feb822b86e208b04baae68.tar.xz puppet-50821328ec637a4ec0feb822b86e208b04baae68.zip |
adding cfengine module, which required passing the cfengine classes all the way through the stack to the scope
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@746 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r-- | lib/puppet/parser/interpreter.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 557af958b..6a8a333e8 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -28,6 +28,10 @@ module Puppet @usenodes = true end + # Set it to either the value or nil. This is currently only used + # by the cfengine module. + @classes = hash[:Classes] || [] + # Create our parser object parsefiles @@ -64,7 +68,7 @@ module Puppet @scope.interp = self @scope.type = "puppet" @scope.name = "top" - return @scope.evaluate(@ast, facts) + return @scope.evaluate(@ast, facts, @classes) end #@ast.evaluate(@scope) rescue Puppet::DevError, Puppet::Error, Puppet::ParseError => except |