aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextrelease.rb
blob: 76c3e0d2a4a537a9b59d6bb9f4442a9911b1cfbc (plain)
1
2
3
4
5
6
7
8
9
10
11
module Puppet::Parser::Functions
  newfunction(:debian_nextrelease, :type => :rvalue) do |args|
    case args[0]
      when 'oldstable' then 'stable'
      when 'stable'    then 'testing'
      when 'testing'   then 'unstable'
      when 'unstable'  then 'experimental'
      else 'unstable'
    end
  end
end