to answer my own question, just put myclass.rb under /var/lib/puppet/ lib instead of /var/lib/puppet/lib/pupet/parser/functions
On Sep 16, 3:33 pm, barrowkwan <[EMAIL PROTECTED]> wrote: > I have created a custom function, my_test.rb ( it is under /var/lib/ > puppet/lib/puppet/parser/functions in Fedora ). the function is like > this > > module Puppet::Parser::Functions > newfunction(:my_test, :type => :rvalue) do |args| > "HelloWorld" > end > end > > now I want to create a custom Class and use in this function, where > should I put this file? > > eg > require 'myclass' > module Puppet::Parser::Functions > newfunction(:my_test, :type => :rvalue) do |args| > mc = myclass.new > "HelloWorld" > end > end > > I tried to put the file under /var/lib/puppet/lib/puppet/parser/ > functions but this didn't seem to work. I would like to put this in / > var/lib/puppet/lib rather than the ruby search path. > > any idea > > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---