Hi,
I have a custom type and provider that are depending on a rest-client gem.
After the pluginsync, when providers get loaded, I do this to avoid it failing:
30 begin
31 require 'rest-client'
32 rescue LoadError => e
33 Puppet.info "You need the `rest-client` gem for this to work."
34 end
The rest-client is not present before the run, thus I get an Info message:
"Info: You need the `rest-client` gem for this to work."
The rest-client gem is then installed before the code that uses this type is run, but the actual provider still thinks the rest-client is not present (as it was loaded without it), thus it fails to run.
Is there any way to force puppet to reload the provider before the associated custom type is run, or anything else I can do?
Thanks!
Karolis