summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/function.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-13 20:01:12 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-05-13 20:01:12 +0000
commit637cc71296f96fd1d5f2ca83aa7e20c73757f8dd (patch)
treef3b055bf75d7df6cbabafb24334710071f2ef8ec /lib/puppet/parser/ast/function.rb
parent9e9ef1acc6231254e52b96257ed1e81475d2d1bc (diff)
downloadpuppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.tar.gz
puppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.tar.xz
puppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.zip
I appear to have object collection working, incredibly. This commit does the collection from the database up to adding the objects to the current scope, which is what sends it to the client.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1190 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast/function.rb')
-rw-r--r--lib/puppet/parser/ast/function.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/puppet/parser/ast/function.rb b/lib/puppet/parser/ast/function.rb
index 80cc5f09e..2c63c8b76 100644
--- a/lib/puppet/parser/ast/function.rb
+++ b/lib/puppet/parser/ast/function.rb
@@ -1,7 +1,5 @@
class Puppet::Parser::AST
- # The code associated with a class. This is different from components
- # in that each class is a singleton -- only one will exist for a given
- # node.
+ # An AST object to call a function.
class Function < AST::Branch
attr_accessor :name, :arguments
@@ -36,7 +34,8 @@ class Puppet::Parser::AST
end
when :statement:
if Puppet::Parser::Functions.rvalue?(@name)
- raise Puppet::ParseError, "Function '%s' must be the value of a statement" %
+ raise Puppet::ParseError,
+ "Function '%s' must be the value of a statement" %
@name
end
else