diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-10 11:00:18 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-10 11:00:18 +0200 |
commit | d50104ce10d7709c9c21f475eb6241136f937ad8 (patch) | |
tree | 50f850ca3179058b6ece6a1e9d9a3a95f7452e5d /lib/puppet/parser/functions/debian_release.rb | |
parent | 7b7fe9497ab2d465fa5ce139dda8ce6ae860e0dc (diff) | |
download | puppet-apt-d50104ce10d7709c9c21f475eb6241136f937ad8.tar.gz puppet-apt-d50104ce10d7709c9c21f475eb6241136f937ad8.tar.bz2 |
Fix functions declaration and filenames.
Diffstat (limited to 'lib/puppet/parser/functions/debian_release.rb')
-rw-r--r-- | lib/puppet/parser/functions/debian_release.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb index ef30484..ec46601 100644 --- a/lib/puppet/parser/functions/debian_release.rb +++ b/lib/puppet/parser/functions/debian_release.rb @@ -1,11 +1,12 @@ module Puppet::Parser::Functions newfunction(:debian_release, :type => :rvalue) do |args| - case #{args[0]} { - etch: { 'oldstable' } - lenny: { 'stable' } - squeeze: { 'testing' } - sid: { 'unstable' } - experimental: { 'experimental' } - } + result = case #{args[0]} + when 'etch' then 'oldstable' + when 'lenny' then 'stable' + when 'squeeze' then 'testing' + when 'sid' then 'unstable' + when 'experimental' then 'experimental' + end + return result end end |