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