Fix functions declaration and filenames.
This commit is contained in:
parent
7b7fe9497a
commit
d50104ce10
5 changed files with 30 additions and 27 deletions
11
lib/puppet/parser/functions/debian_nextcodename.rb
Normal file
11
lib/puppet/parser/functions/debian_nextcodename.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
module Puppet::Parser::Functions
|
||||
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
|
||||
result = case #{args[0]}
|
||||
when 'etch' then 'lenny'
|
||||
when 'lenny' then 'squeeze'
|
||||
when 'squeeze' then 'sid'
|
||||
when 'sid' then 'experimental'
|
||||
end
|
||||
return result
|
||||
end
|
||||
end
|
11
lib/puppet/parser/functions/debian_nextrelease.rb
Normal file
11
lib/puppet/parser/functions/debian_nextrelease.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
|
@ -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
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
module Puppet::Parser::Functions
|
||||
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
|
||||
case #{args[0]} {
|
||||
etch: { 'lenny' }
|
||||
lenny: { 'squeeze' }
|
||||
squeeze: { 'sid' }
|
||||
sid: { 'experimental' }
|
||||
}
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
module Puppet::Parser::Functions
|
||||
newfunction(:debian_nextrelease, :type => :rvalue) do |args|
|
||||
case #{args[0]} {
|
||||
oldstable: { 'stable' }
|
||||
stable: { 'testing' }
|
||||
testing: { 'unstable' }
|
||||
unstable: { 'experimental' }
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue