summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_release_version.rb
blob: 0abe90ec1865cd9938fc4a2944f5bc25aab95e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
module Puppet::Parser::Functions
  newfunction(:debian_release_version, :type => :rvalue) do |args|
    case args[0]
      when 'etch'         then '4.0'
      when 'lenny'        then '5.0'
      when 'squeeze'      then '6.0'
      when 'wheezy'       then '7.0'
      else ''
    end
  end
end