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