8 lines
161 B
Ruby
8 lines
161 B
Ruby
|
# get the basename of the given filename
|
||
|
module Puppet::Parser::Functions
|
||
|
newfunction(:basename, :type => :rvalue) do |args|
|
||
|
File.basename(args[0])
|
||
|
end
|
||
|
end
|
||
|
|