summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextcodename.rb
blob: f3190efb6a51b8a26973f6cd75c39d9700f66a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 "sid"
      when "sid"     then "experimental"
      else "sid"
    end
  end
end