module-common/plugins/puppet/parser/functions/dirname.rb

8 lines
169 B
Ruby
Raw Normal View History

# get the directory corresponding to this filename
module Puppet::Parser::Functions
newfunction(:dirname, :type => :rvalue) do |args|
File.dirname(args[0])
end
end