module-apt/lib/puppet/parser/functions/debian_nextrelease.rb

12 lines
318 B
Ruby
Raw Normal View History

module Puppet::Parser::Functions
newfunction(:debian_nextrelease, :type => :rvalue) do |args|
result = case #{args[0]}
when 'oldstable' then 'stable'
when 'stable' then 'testing'
when 'testing' then 'unstable'
when 'unstable' then 'experimental'
end
return result
end
end