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