aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextcodename.rb
blob: 3d5c3bdfdf19b21519ad136d9ddd990d3db1c800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Puppet::Parser::Functions
  newfunction(:debian_nextcodename, :type => :rvalue) do |args|
    case args[0]
      when "etch"    then "lenny"
      when "lenny"   then "squeeze"
      when "squeeze" then "wheezy"
      when "wheezy"  then "jessie"
      when "jessie"  then "sid"
      when "sid"     then "experimental"
      else "sid"
    end
  end
end