module-apt/lib/puppet/parser/functions/debian_nextcodename.rb
2015-05-06 10:41:47 -04:00

12 lines
328 B
Ruby

module Puppet::Parser::Functions
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
case args[0]
when "squeeze" then "wheezy"
when "wheezy" then "jessie"
when "jessie" then "stretch"
when "stretch" then "sid"
when "sid" then "experimental"
else "sid"
end
end
end