diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-06 11:16:44 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-06 11:16:44 +0200 |
commit | d65e1573a9f421d562eef6a11cbde99700036011 (patch) | |
tree | e184345582f0c5f37ba47508aad5f31791e4d827 /lib/puppet/parser/functions/nextcodename.rb | |
parent | 356ff9334078198fde39fe5c8e8212109d6537a0 (diff) | |
download | puppet-apt-d65e1573a9f421d562eef6a11cbde99700036011.tar.gz puppet-apt-d65e1573a9f421d562eef6a11cbde99700036011.tar.bz2 |
Add a few useful functions.
Diffstat (limited to 'lib/puppet/parser/functions/nextcodename.rb')
-rw-r--r-- | lib/puppet/parser/functions/nextcodename.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/nextcodename.rb b/lib/puppet/parser/functions/nextcodename.rb new file mode 100644 index 0000000..3dd592b --- /dev/null +++ b/lib/puppet/parser/functions/nextcodename.rb @@ -0,0 +1,10 @@ +module Puppet::Parser::Functions + newfunction(:debian_nextcodename, :type => :rvalue) do |args| + case #{args[0]} { + etch: { 'lenny' } + lenny: { 'squeeze' } + squeeze: { 'sid' } + sid: { 'experimental' } + } + end +end |