module Puppet::Parser::Functions
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
- result = case #{args[0]}
- when 'etch' then 'lenny'
- when 'lenny' then 'squeeze'
- when 'squeeze' then 'sid'
- when 'sid' then 'experimental'
+ case args[0]
+ when "etch" then "lenny"
+ when "lenny" then "squeeze"
+ when "squeeze" then "sid"
+ when "sid" then "experimental"
+ else "sid"
end
- return result
end
end
module Puppet::Parser::Functions
newfunction(:debian_nextrelease, :type => :rvalue) do |args|
- result = case #{args[0]}
+ case args[0]
when 'oldstable' then 'stable'
when 'stable' then 'testing'
when 'testing' then 'unstable'
when 'unstable' then 'experimental'
+ else 'unstable'
end
- return result
end
end
module Puppet::Parser::Functions
newfunction(:debian_release, :type => :rvalue) do |args|
- result = case #{args[0]}
+ case args[0]
when 'etch' then 'oldstable'
when 'lenny' then 'stable'
when 'squeeze' then 'testing'
+ when 'wheezy' then 'testing'
when 'sid' then 'unstable'
when 'experimental' then 'experimental'
+ else 'testing'
end
- return result
end
end