summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-13 18:27:22 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-13 18:27:22 +0000
commit9e9ef1acc6231254e52b96257ed1e81475d2d1bc (patch)
treedb3fec56ad53ee8741c1c07e56e4f965e1f24320 /lib/puppet/parser/ast
parent8ed666a7c202420d4bc59cea77f3bd0bec95cc11 (diff)
downloadpuppet-9e9ef1acc6231254e52b96257ed1e81475d2d1bc.tar.gz
puppet-9e9ef1acc6231254e52b96257ed1e81475d2d1bc.tar.xz
puppet-9e9ef1acc6231254e52b96257ed1e81475d2d1bc.zip
The "collectable" syntax now works end-to-end -- the parser correctly recognizes it, the AST objects retain the settings, the scopes do the right conversion, the interpreter stores them all in the database, and then it strips the collectable objects out before sending the object list to the client
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1189 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast')
-rw-r--r--lib/puppet/parser/ast/objectdef.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast/objectdef.rb b/lib/puppet/parser/ast/objectdef.rb
index 9acf56b49..f15a082e2 100644
--- a/lib/puppet/parser/ast/objectdef.rb
+++ b/lib/puppet/parser/ast/objectdef.rb
@@ -2,7 +2,7 @@ class Puppet::Parser::AST
# Any normal puppet object declaration. Can result in a class or a
# component, in addition to builtin types.
class ObjectDef < AST::Branch
- attr_accessor :name, :type
+ attr_accessor :name, :type, :collectable
attr_reader :params
# probably not used at all
@@ -93,6 +93,11 @@ class Puppet::Parser::AST
:file => @file,
:line => @line
)
+
+ # Retain our collectable marking
+ if self.collectable
+ obj.collectable = true
+ end
rescue Puppet::ParseError => except
except.line = self.line
except.file = self.file