summaryrefslogtreecommitdiff
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-02-23 14:05:56 -0500
committerJeff McCune <jeff@puppetlabs.com>2011-02-23 14:05:56 -0500
commit384ffd957153f65eb4f47b3142d98853c31b4124 (patch)
treea46170c873e3e93a3261a1a93eb72a8466e8abba /lib/puppet/parser
Initial commit
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/functions/README.markdown17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/README.markdown b/lib/puppet/parser/functions/README.markdown
new file mode 100644
index 0000000..15d7495
--- /dev/null
+++ b/lib/puppet/parser/functions/README.markdown
@@ -0,0 +1,17 @@
+Functions
+=========
+
+Define functions in this directory.
+
+File paths should match the function name; for example, a function
+`myfunction`, defined like this:
+
+ Puppet::Parser::Functions::newfunction(
+ :myfunction,
+ :type => :statement,
+ :doc => "Documentation here."
+ ) do |vals|
+ # ...
+ end
+
+Should be found in `myfunction.rb` in this directory.