diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 13:39:04 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 13:39:04 -0200 |
commit | 8a074424708a2ca7c7625e138fe29621ae3315a8 (patch) | |
tree | 0a1a47e55d7d49114cf246b9efea1e0907ee1cbd /lib/puppet/parser/functions/get_default.rb | |
parent | a1bde593bf95ea1048a35ad6c42cbad8c7a51971 (diff) | |
parent | 6fcf75d46a5c7fcd00fd4470270552b543cf4452 (diff) | |
download | puppet-common-master.tar.gz puppet-common-master.tar.bz2 |
Diffstat (limited to 'lib/puppet/parser/functions/get_default.rb')
-rw-r--r-- | lib/puppet/parser/functions/get_default.rb | 15 |
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 |