module-apt/lib/puppet/parser/functions/debian_nextcodename.rb

12 lines
292 B
Ruby
Raw Normal View History

module Puppet::Parser::Functions
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
2010-10-10 12:05:26 +02:00
case args[0]
when "squeeze" then "wheezy"
2013-05-03 17:09:34 +02:00
when "wheezy" then "jessie"
when "jessie" then "sid"
2010-10-10 12:05:26 +02:00
when "sid" then "experimental"
else "sid"
end
end
end