summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-01-23 09:46:18 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-01-23 09:46:18 +1100
commit7c8094c70490e134dcac2fd772de36e5312e8388 (patch)
tree4627e69910c84b13cc81c6ea2576ad9480ebcfc5
parentf40a6b1dc5feca966899a112c892f2b4de596bd3 (diff)
downloadpuppet-7c8094c70490e134dcac2fd772de36e5312e8388.tar.gz
puppet-7c8094c70490e134dcac2fd772de36e5312e8388.tar.xz
puppet-7c8094c70490e134dcac2fd772de36e5312e8388.zip
Fixed #1879 - Added to tidy documentation
-rw-r--r--CHANGELOG2
-rwxr-xr-xlib/puppet/type/tidy.rb20
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