From 7c8094c70490e134dcac2fd772de36e5312e8388 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Fri, 23 Jan 2009 09:46:18 +1100 Subject: Fixed #1879 - Added to tidy documentation --- CHANGELOG | 2 ++ lib/puppet/type/tidy.rb | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index de0386c8f..877629957 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,6 @@ 0.25.0 + Fixed #1879 - Added to tidy documentation + Fixed #1881 - Added md5lite explanation Fixed #1877 - Tidy type reference update for use of 0 diff --git a/lib/puppet/type/tidy.rb b/lib/puppet/type/tidy.rb index 2b0c153f0..a0b0fbe6c 100755 --- a/lib/puppet/type/tidy.rb +++ b/lib/puppet/type/tidy.rb @@ -20,11 +20,21 @@ Puppet::Type.newtype(:tidy) do end newparam(:matches) do - desc "One or more file glob patterns, which restrict the list of - files to be tidied to those whose basenames match at least one - of the patterns specified. Multiple patterns can be specified - using an array. - + desc "One or more (shell type) file glob patterns, which restrict + the list of files to be tidied to those whose basenames match + at least one of the patterns specified. Multiple patterns can + be specified using an array. + + tidy { "/tmp": + age => "1w", + recurse => false, + matches => [ "[0-9]pub*.tmp", "*.temp", "tmpfile?" ] + } + + The example above removes files from /tmp if they are one week + old or older, are not in a subdirectory and match one of the shell + globs given. + Note that the patterns are matched against the basename of each file -- that is, your glob patterns should not have any '/' characters in them, since you're only specifying -- cgit