2010-10-10 11:00:18 +02:00
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
|
2010-10-10 12:05:26 +02:00
|
|
|
case args[0]
|
|
|
|
when "etch" then "lenny"
|
|
|
|
when "lenny" then "squeeze"
|
|
|
|
when "squeeze" then "sid"
|
|
|
|
when "sid" then "experimental"
|
|
|
|
else "sid"
|
2010-10-10 11:00:18 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|