[Puppet Users] Re: custom function question

2008-10-15 Thread Brice Figureau
On Fri, 2008-10-03 at 15:32 -0500, Luke Kanies wrote: > On Oct 3, 2008, at 2:02 PM, Grumpus wrote: > > > > > Using puppet 0.24.5 (server and client). I've written a trivial custom > > function: > > > > module Puppet::Parser::Functions > >newfunction(:seq, :type => :rvalue) do |args| > >

[Puppet Users] Re: custom function question

2008-10-03 Thread Luke Kanies
On Oct 3, 2008, at 2:02 PM, Grumpus wrote: > > Using puppet 0.24.5 (server and client). I've written a trivial custom > function: > > module Puppet::Parser::Functions >newfunction(:seq, :type => :rvalue) do |args| > (args[0].to_i .. args[1].to_i).to_a >end > end > > It seems to wor