puppet/util/lib/puppet/parser/functions/dirname.rb

6 lines
130 B
Ruby

module Puppet::Parser::Functions
newfunction(:dirname, :type => :rvalue) do |args|
File.dirname(args[0])
end
end