Fixed argument comments and changed wget check not to download file on every run from custom::file.
This commit is contained in:
parent
f1a13d5e59
commit
19b06696e7
1 changed files with 6 additions and 6 deletions
|
@ -27,15 +27,15 @@ class custom {
|
||||||
# $ensure:
|
# $ensure:
|
||||||
# See $ensure from File type.
|
# See $ensure from File type.
|
||||||
# $group:
|
# $group:
|
||||||
# See $ensure from File type.
|
# See $group from File type.
|
||||||
# $mode:
|
# $mode:
|
||||||
# See $ensure from File type.
|
# See $mode from File type.
|
||||||
# $owner:
|
# $owner:
|
||||||
# See $ensure from File type.
|
# See $owner from File type.
|
||||||
# $seltype:
|
# $seltype:
|
||||||
# See $ensure from File type.
|
# See $seltype from File type.
|
||||||
# $source:
|
# $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.
|
# https and ftp urls.
|
||||||
#
|
#
|
||||||
# === Sample usage:
|
# === Sample usage:
|
||||||
|
@ -58,7 +58,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp
|
||||||
case $method {
|
case $method {
|
||||||
"ftp","http","https": {
|
"ftp","http","https": {
|
||||||
$fetch_cmd = "wget -q -O '${name}' '${source}'"
|
$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'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue