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