summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-04-10 17:18:21 +0200
committerGuido Günther <agx@sigxcpu.org>2014-04-11 09:08:57 +0200
commitc0eab58bc6bcfb26275349d817bf8746902a221a (patch)
treef40261bdb699c3b734babbc3ff2476c4b0c93e10 /README.markdown
Initial commit
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
new file mode 100644
index 0000000..447ef7f
--- /dev/null
+++ b/README.markdown
@@ -0,0 +1,24 @@
+# Standard Library-- #
+
+This puppet module provides some (in fact currently only one) function on top
+of the standard library. It's called "stdlib minus minus".
+
+# Functions #
+
+validate_nonemptystring
+-----------------------
+Validate that all passed values are strings with a length greater 0 and not undef. Abort catalog
+compilation if any value fails this check.
+
+The following values will pass:
+
+ $my_string = "one two"
+ validate_nonemptystring($my_string, 'three')
+
+The following values will fail, causing compilation to abort:
+
+ validate_nonemptystring(true)
+ validate_nonemptystring([ 'some', 'array' ])
+ $undefined = undef
+ validate_nonemptystring($undefined)
+