Skip to content

Commit

Permalink
Merge c399786 into 8d2c079
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Nov 17, 2015
2 parents 8d2c079 + c399786 commit c7cf333
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/src/ruby/ruby.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ static const char load_puppet[] =
"require 'puppet'\n"
"Puppet.initialize_settings\n"
"unless $LOAD_PATH.include?(Puppet[:libdir])\n"
" $LOAD_PATH << Puppet[:libdir]\n"
" $LOAD_PATH << Puppet[:libdir]\n"
"end\n"
"Facter.reset\n"
"if Puppet.respond_to? :initialize_facts\n"
" Puppet.initialize_facts\n"
"else\n"
" Facter.add(:puppetversion) do\n"
" setcode { Puppet.version.to_s }\n"
" end\n"
"end\n"
"Facter.search_external([Puppet[:pluginfactdest]])";

namespace facter { namespace ruby {
Expand Down

0 comments on commit c7cf333

Please sign in to comment.