summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/nextcodename.rb
blob: 3dd592b862ade078dc2dc0d6d13bdd144ea09c82 (plain)
1
2
3
4
5
6
7
8
9
10
module Puppet::Parser::Functions
  newfunction(:debian_nextcodename, :type => :rvalue) do |args|
    case #{args[0]} {
      etch:    { 'lenny' }
      lenny:   { 'squeeze' }
      squeeze: { 'sid' }
      sid:     { 'experimental' }
    }
  end
end