puppet-standalone-mashup/shared/lib/puppet/parser/functions/bin_path.rb

12 lines
227 B
Ruby
Raw Normal View History

require 'puppet/modules/common_directories'
module Puppet::Parser::Functions
newfunction(:bin_path, :type => :rvalue) do |args|
2012-02-16 01:33:18 +00:00
$stdout.puts args.inspect
bin_path(lookupvar('base::install_path'), *args)
end
end