-
Notifications
You must be signed in to change notification settings - Fork 12
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
add curl_command as serverspec extension #89
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be added to spec_helper_acceptance.rb
, or should people need to explicitly opt-in to it with
require 'voxpupuli/acceptance/serverspec_extensions'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makese sense to load it by default? It's not expensive and makes the usage easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only worry is that it modifies serverspec without the user opting in for that.
But I would also lean towards "enable"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think explicitly opting in can make sense, but I'd like to see it documented (for example in README).
end | ||
|
||
def body_as_json | ||
MultiJson.load(body) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: serverspec itself now depends on multi_json
so this should be acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd still like to see some instructions on using it, probably in README
@ekohl added README |
3476ae3
to
20a8256
Compare
otherwise the module is not found and Puppet reaches out to the forge
The docs and the loading are not in sync (docs say default, code doesn't load by default) |
No description provided.