On Wed, Nov 7, 2012 at 6:55 PM, Asif Iqbal <vad...@gmail.com> wrote:

>
> yep, It does look like I have two different ruby
>

Not necessarily, these are just all of the directories a single ruby
executable will look to when trying to load *.rb files using the 'require'
statement.

/usr/local/lib/site_ruby
>

Looking at the output you pasted, it doesn't look like Puppet is anywhere
on your system except inside of /usr/lib/ruby/vendor_ruby/puppet/

I do have a minor typo though.  The command is only searching the top level
of the Puppet tree, not all subdirectories.  Could you try this final
command to verify there's only one copy of Puppet and Facter?

ruby -r puppet -e 'puts %w{ puppet facter }.collect {|d| $LOAD_PATH.collect
{|l| { l => Dir["#{l}/#{d}/**/*.rb"] }}}.to_yaml'

(Note the /**/*.rb instead of the plain /*.rb)

-Jeff

-- 
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 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to