diff options
| author | Ben Hughes <ben@puppetlabs.com> | 2011-04-01 12:48:38 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2011-04-01 17:43:43 +1100 |
| commit | 2cdadf9b7fa7a4a1b826150549e5faffc4e494f3 (patch) | |
| tree | 844f96ec504009b9ed54d0ea94c36dae25725366 /lib | |
| parent | d7a1424fa9b4626a2faa96d4673308ff91e5deb8 (diff) | |
| download | puppet-2cdadf9b7fa7a4a1b826150549e5faffc4e494f3.tar.gz puppet-2cdadf9b7fa7a4a1b826150549e5faffc4e494f3.tar.xz puppet-2cdadf9b7fa7a4a1b826150549e5faffc4e494f3.zip | |
(#6937) Document the recurse parameter of File type.
Update the desc block with information gleaned from #1469 and the code
about recurse => remote and other types of recursion.
The auto generated documentation was sparse and this is an area that often
comes up on the mailing list/IRC.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type/file.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb index e1a4ecbb9..79f4b81ab 100644 --- a/lib/puppet/type/file.rb +++ b/lib/puppet/type/file.rb @@ -122,7 +122,17 @@ Puppet::Type.newtype(:file) do newparam(:recurse) do desc "Whether and how deeply to do recursive - management." + management. Options are: + inf,true => Regular style recursion on both remote and local + directory structure. + remote => Descends recursively into the remote directory + but not the local directory. Allows copying of + a few files into a directory containing many + unmanaged files without scanning all the local files. + false => Default of no-recursion. + [0-9]+ => Both, but limit recursion. Warning: this syntax + is deprecated and has moved to recurselimit. + " newvalues(:true, :false, :inf, :remote, /^[0-9]+$/) |
