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