Puppet Function: source_filename
- Defined in:
- lib/puppet/parser/functions/source_filename.rb
- Function type:
- Ruby 3.x API
Overview
2 3 4 5 6 |
# File 'lib/puppet/parser/functions/source_filename.rb', line 2 newfunction(:source_filename, :type => :rvalue) do |args| raise(Puppet::ParseError, 'source_filename(): too few arguments') if args.empty? args[0].rpartition('/').last end |