summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-12-17 11:00:23 -0800
committerMorgan Haskel <morgan@puppetlabs.com>2014-12-17 11:00:23 -0800
commit841b0df21069091ba8d7a307faf17f94945f68d6 (patch)
tree56c105b8043d4ec642dd8c03784431b470303c61 /README.markdown
parent8726caf996472c9c8822d1f697ff02a51abc54df (diff)
parentef3d42f7bbdf95b21f46e580de309298cad300ea (diff)
Merge pull request #368 from rfugina/basename
Basename implementation
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index b7824ff..2118d93 100644
--- a/README.markdown
+++ b/README.markdown
@@ -86,6 +86,13 @@ If you want to use a standardized set of run stages for Puppet, `include stdlib`
Requires an action ('encode', 'decode') and either a plain or base64-encoded
string. *Type*: rvalue
+* `basename`: Returns the `basename` of a path (optionally stripping an extension). For example:
+ * ('/path/to/a/file.ext') returns 'file.ext'
+ * ('relative/path/file.ext') returns 'file.ext'
+ * ('/path/to/a/file.ext', '.ext') returns 'file'
+
+ *Type*: rvalue
+
* `bool2num`: Converts a boolean to a number. Converts values:
* 'false', 'f', '0', 'n', and 'no' to 0.
* 'true', 't', '1', 'y', and 'yes' to 1.