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