Fixed argument comments and changed wget check not to download file on every run from custom::file.

This commit is contained in:
Timo Mkinen 2010-10-14 08:46:53 +03:00
parent f1a13d5e59
commit 19b06696e7

View file

@ -27,15 +27,15 @@ class custom {
# $ensure:
# See $ensure from File type.
# $group:
# See $ensure from File type.
# See $group from File type.
# $mode:
# See $ensure from File type.
# See $mode from File type.
# $owner:
# See $ensure from File type.
# See $owner from File type.
# $seltype:
# See $ensure from File type.
# See $seltype from File type.
# $source:
# See $ensure from File type. This define will also accept http,
# See $source from File type. This define will also accept http,
# https and ftp urls.
#
# === Sample usage:
@ -58,7 +58,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp
case $method {
"ftp","http","https": {
$fetch_cmd = "wget -q -O '${name}' '${source}'"
$diff_cmd = "wget -q -O - '${source}' | diff -q - '${name}'"
$diff_cmd = "wget -N --spider '${source}' 2>&1 | fgrep 'Server file no newer than local file'"
}
}