aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_release_version.rb
blob: ff58f7286b5e6644b3dd3d0ff53bdcba318147bc (plain)
1
2
3
4
5
6
7
8
9
10
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'
      else ''
    end
  end
end