Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / ensure_resources.rb
index 642247c..c7032ca 100644 (file)
@@ -2,10 +2,16 @@ require 'puppet/parser/functions'
 
 Puppet::Parser::Functions.newfunction(:ensure_resources,
                                       :type => :statement,
-                                      :doc => <<-'DOC'
+                                      :doc => <<-DOC
+  @summary
     Takes a resource type, title (only hash), and a list of attributes that describe a
     resource.
 
+  @return
+    created resources with the passed type and attributes
+
+  @example Example usage
+
         user { 'dan':
           gid => 'mygroup',
           ensure => present,
@@ -14,7 +20,7 @@ Puppet::Parser::Functions.newfunction(:ensure_resources,
     An hash of resources should be passed in and each will be created with
     the type and parameters specified if it doesn't already exist.
 
-        ensure_resources('user', {'dan' => { gid => 'mygroup', uid => '600' } ,  'alex' => { gid => 'mygroup' }}, {'ensure' => 'present'})
+    ensure_resources('user', {'dan' => { gid => 'mygroup', uid => '600' }, 'alex' => { gid => 'mygroup' }}, {'ensure' => 'present'})
 
     From Hiera Backend: