2011-04-30 15:36:25 +02:00
|
|
|
#
|
|
|
|
# squeeze.rb
|
|
|
|
#
|
|
|
|
|
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:squeeze, :type => :rvalue, :doc => <<-EOS
|
|
|
|
EOS
|
|
|
|
) do |arguments|
|
2011-06-29 22:21:55 +02:00
|
|
|
|
|
|
|
if (arguments.size != 2) then
|
|
|
|
raise(Puppet::ParseError, "squeeze(): Wrong number of arguments "+
|
|
|
|
"given #{arguments.size} for 2")
|
|
|
|
end
|
|
|
|
|
2011-04-30 15:36:25 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2 et :
|