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

14 lines
250 B
Ruby
Raw Normal View History

require 'puppet/modules/common_directories'
module Puppet::Parser::Functions
2012-02-16 01:33:18 +00:00
$stdout.puts "here"
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