summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 0efaf16..7b45b17 100644
--- a/README.markdown
+++ b/README.markdown
@@ -195,6 +195,16 @@ Would return: ['a','c']
- *Type*: rvalue
+dirname
+-------
+Returns the `dirname` of a path.
+
+*Examples:*
+
+ dirname('/path/to/a/file.ext')
+
+Would return: '/path/to/a'
+
downcase
--------
Converts the case of a string or all strings in an array to lower case.
@@ -233,6 +243,11 @@ If the resource already exists but does not match the specified parameters,
this function will attempt to recreate the resource leading to a duplicate
resource definition error.
+An array of resources can also be passed in and each will be created with
+the type and parameters specified if it doesn't already exist.
+
+ ensure_resource('user', ['dan','alex'], {'ensure' => 'present'})
+
- *Type*: statement
@@ -390,7 +405,7 @@ Example:
hash
----
-This function converts and array into a hash.
+This function converts an array into a hash.
*Examples:*