From 285847eebbd03f6731ffb1c01021a0d5e9233f75 Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Tue, 8 Mar 2016 11:03:24 +0100 Subject: [PATCH] llicencia --- lib/puppet/parser/functions/bool2yesno.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/puppet/parser/functions/bool2yesno.rb b/lib/puppet/parser/functions/bool2yesno.rb index 778a7e0..6cd326d 100644 --- a/lib/puppet/parser/functions/bool2yesno.rb +++ b/lib/puppet/parser/functions/bool2yesno.rb @@ -1,3 +1,14 @@ +#shamesly stolen from: https://github.com/puppetlabs/puppetlabs-apache/blob/master/lib/puppet/parser/functions/bool2httpd.rb +# with minor changes +# +# +#Copyright (C) 2012 Puppet Labs Inc +# +#Puppet Labs can be contacted at: info@puppetlabs.com +# +#Licensed under the Apache License, Version 2.0 (the "License"); +# +# Puppet::Parser::Functions::newfunction(:bool2yesno, :type => :rvalue, :doc => <<-EOS Transform a supposed boolean to yes or no. Pass all other values through. Given a nil value (undef), bool2yesno will return 'no'