-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use net/http instead of puppetdb-ruby #57
Comments
@daenney wouldn't it be possible to fix puppetdb-ruby? |
I took a look at that and it would be feasible but the project seems entirely abandoned. I'm not sure we'll ever see another release of it to be honest. The easiest way for puppetdb-ruby would be to add an escape hatch, something along the lines of adding a |
Sadly, I haven't been able to get work time to maintain puppetdb-ruby and no one has volunteered to take over the project. It's wisest to probably just use raw http for now :( sorry for this tragedy of the commons situation. |
@daenney it will probably not be easy to do what this https://github.com/camptocamp/puppet-ghostbuster/blob/master/spec/spec_helper.rb#L6-L19 does for unit tests... |
It sounds like the would be better solved with VCR: https://github.com/vcr/vcr |
@daenney did you already use VCR? I'm interested in using this instead of my hack with jgrep, but I can't find a simple doc about how to use it with rspec. |
The usage example in the README has always worked for me. Is there something there you'd like me to clarify? |
The puppetdb-ruby gem provides a useful client but seems unable to encode more complex queries correctly causing APIError's to be thrown. Especially the classes query could benefit from a more efficient query on larger installations.
I'm having some trouble with Ruby right now but this should more or less be it:
The text was updated successfully, but these errors were encountered: