aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextcodename.rb
blob: 6bc4b6b9df3f1bee0dbd1f4bf0972f8ccb26fa4f (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 "etch"    then "lenny"
      when "lenny"   then "squeeze"
      when "squeeze" then "sid"
      when "sid"     then "experimental"
      else "sid"
    end
  end
end