aboutsummaryrefslogtreecommitdiff
path: root/plugins/puppet/parser/functions/basename.rb
blob: 14f0ca0f5094609925b51314f9d4f2e5dd5f7ce9 (plain)
1
2
3
4
5
6
7
# get the basename of the given filename
module Puppet::Parser::Functions
	newfunction(:basename, :type => :rvalue) do |args|
		File.basename(args[0])
	end
end