summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authortphoney <tp@puppet.com>2016-07-05 09:56:42 +0100
committertphoney <tp@puppet.com>2016-07-18 11:58:00 +0100
commit72d23659513517389880ba13663a1d6380d538ca (patch)
treece2eac2a2093325280a04fe2c3bfeb02bef1712d /README.markdown
parent9465eeaea74086fbfb7ef1b3c1a8dbf5b5f81ae6 (diff)
(MODULES-3529)add deprecation function
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 373b08c..8252ab5 100644
--- a/README.markdown
+++ b/README.markdown
@@ -289,6 +289,10 @@ Deletes all instances of a given value from a hash. For example, `delete_values(
Deletes all instances of the undef value from an array or hash. For example, `$hash = delete_undef_values({a=>'A', b=>'', c=>undef, d => false})` returns {a => 'A', b => '', d => false}. *Type*: rvalue.
+#### `deprecation`
+
+Function to print deprecation warnings, Logs a warning once for a given key. The uniqueness key - can appear once. The msg is the message text including any positional information that is formatted by the user/caller of the method It is affected by the puppet setting 'strict', which can be set to :error (outputs as an error message), :off (no message / error is displayed) and :warning (default, outputs a warning) *Type*: String, String.
+
#### `difference`
Returns the difference between two arrays. The returned array is a copy of the original array, removing any items that also appear in the second array. For example, `difference(["a","b","c"],["b","c","d"])` returns ["a"]. *Type*: rvalue.