2010-10-10 11:00:18 +02:00
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:debian_nextrelease, :type => :rvalue) do |args|
|
2010-10-10 12:05:26 +02:00
|
|
|
case args[0]
|
2010-10-10 11:00:18 +02:00
|
|
|
when 'oldstable' then 'stable'
|
|
|
|
when 'stable' then 'testing'
|
|
|
|
when 'testing' then 'unstable'
|
|
|
|
when 'unstable' then 'experimental'
|
2010-10-10 12:05:26 +02:00
|
|
|
else 'unstable'
|
2010-10-10 11:00:18 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|