aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextrelease.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/debian_nextrelease.rb')
-rw-r--r--lib/puppet/parser/functions/debian_nextrelease.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/debian_nextrelease.rb b/lib/puppet/parser/functions/debian_nextrelease.rb
new file mode 100644
index 0000000..76c3e0d
--- /dev/null
+++ b/lib/puppet/parser/functions/debian_nextrelease.rb
@@ -0,0 +1,11 @@
+module Puppet::Parser::Functions
+ newfunction(:debian_nextrelease, :type => :rvalue) do |args|
+ case args[0]
+ when 'oldstable' then 'stable'
+ when 'stable' then 'testing'
+ when 'testing' then 'unstable'
+ when 'unstable' then 'experimental'
+ else 'unstable'
+ end
+ end
+end