Sha256: 8f8d91f79a94da0517fdd431efc14a8f00d936a5941430454db2bb0b0691a39f
Contents?: true
Size: 380 Bytes
Versions: 21
Compression:
Stored size: 380 Bytes
Contents
module Puppet::Parser::Functions newfunction(:dirname, :type => :rvalue, :doc => <<-EOS Returns the dirname of a path. EOS ) do |arguments| raise(Puppet::ParseError, "dirname(): Wrong number of arguments " + "given (#{arguments.size} for 1)") if arguments.size < 1 path = arguments[0] return File.dirname(path) end end # vim: set ts=2 sw=2 et :
Version data entries
21 entries across 21 versions & 2 rubygems