Puppet Function: concat_output
- Defined in:
- lib/puppet/parser/functions/concat_output.rb
- Function type:
- Ruby 3.x API
Overview
Returns the output file for a given concat build.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/puppet/parser/functions/concat_output.rb', line 17 newfunction(:concat_output, :type => :rvalue, :doc => "Returns the output file for a given concat build.") do |args| vardirfact = lookupvar('::puppet_vardir') if vardirfact.nil? || vardirfact == :undefined clientvardir = Puppet[:vardir] else clientvardir = vardirfact end "#{clientvardir}/concat_native/output/#{args.first}.out" end |