Re: [Puppet Users] require custom ruby code in custom function

2012-03-06 Thread Dominik Zyla
On Monday, 5 March 2012 at 11:37, flex wrote: > hi, all: > > i want to require my own ruby class in a custom function, now i put the ruby > file in the same directory with custom function, and require it in the > function file like this: > > require File.join([File.expand_path(File.dirname(__FI

[Puppet Users] require custom ruby code in custom function

2012-03-05 Thread flex
hi, all: i want to require my own ruby class in a custom function, now i put the ruby file in the same directory with custom function, and require it in the function file like this: require File.join([File.expand_path(File.dirname(__FILE__)), 'test.rb']) but i think this is too ugly, is there a