Sha256: bcf0434f9217b5a54f24ffeb10a9e8c87b32cdf8583d4f815821a30dfc723c91
Contents?: true
Size: 495 Bytes
Versions: 49
Compression:
Stored size: 495 Bytes
Contents
# # is_true.rb # # Checks whether a given string or boolean value is true. # module Puppet::Parser::Functions newfunction(:is_true, :type => :rvalue, :doc => <<-EOS This function checks whether a given value is true. EOS ) do |args| value = nil CORL.run do raise(Puppet::ParseError, "is_true(): Must have a value to check; " + "given (#{args.size} for 1)") if args.size < 1 value = CORL::Util::Data.true?(args[0]) end return value end end
Version data entries
49 entries across 49 versions & 1 rubygems