aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-03-27 18:33:24 +0200
committermh <mh@immerda.ch>2016-03-27 18:33:24 +0200
commitcff3734e4fc76973fd3720f1dd7f50a80e65d5f4 (patch)
treec43daa0c70b253df6c77865f2d913eb25d7dc9c4
parent2ac62545834f10e958c863adac75cbe47a597faf (diff)
downloadpuppet-common-cff3734e4fc76973fd3720f1dd7f50a80e65d5f4.tar.gz
puppet-common-cff3734e4fc76973fd3720f1dd7f50a80e65d5f4.tar.bz2
this is the pick() function in stdlib
-rw-r--r--lib/puppet/parser/functions/get_default.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/puppet/parser/functions/get_default.rb b/lib/puppet/parser/functions/get_default.rb
deleted file mode 100644
index 3f4359b..0000000
--- a/lib/puppet/parser/functions/get_default.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# get_default($value, $default) : $value
-#
-# return $value || $default.
-module Puppet::Parser::Functions
- newfunction(:get_default, :type => :rvalue) do |args|
- value = nil
- args.each { |x|
- if ! x.nil? and x.length > 0
- value = x
- break
- end
- }
- return value
- end
-end