diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-28 05:45:46 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-28 05:45:46 +0000 |
commit | 2544f75f46dcf45a397bf59345072cfa48cf2e90 (patch) | |
tree | 9eca084f0a517a1c6ec5c693db88f52bfd22d027 /lib/puppet/parser/functions.rb | |
parent | 4358e853086f46e32e189496e3f7618dbf3f04bd (diff) | |
download | puppet-2544f75f46dcf45a397bf59345072cfa48cf2e90.tar.gz puppet-2544f75f46dcf45a397bf59345072cfa48cf2e90.tar.xz puppet-2544f75f46dcf45a397bf59345072cfa48cf2e90.zip |
Fixing the documentation to match reality, as reported in #548.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2358 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/functions.rb')
-rw-r--r-- | lib/puppet/parser/functions.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index 1f9c8f519..21de7b6c0 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -157,9 +157,8 @@ module Functions # Test whether a given class or definition is defined newfunction(:defined, :type => :rvalue, :doc => "Determine whether a given - type is defined, either as a native type or a defined type, or whether a resource has been - specified. If you are checking with a resource is defined, use the normal resource - reference syntax, e.g., ``File['/etc/passwd']``.") do |vals| + type is defined, either as a native type or a defined type, or whether a class is defined. + This is useful for checking whether a class is defined and only including it if it is.") do |vals| result = false vals.each do |val| case val |