Closed margueritepd closed 8 years ago
:+1: once specs fixed.
You could use a StringIO instead of a temp file if you wanted to avoid touching disk.
:+1: Looks reasonable to me, but will be breaking behavior if anyone is relying on ExecOutput
to have IO
s for stdout/stderr.
:+1: Seems like a good plan to me.
@margueritepd i have pushed an example spec here: https://github.com/PagerDuty/blender/blob/readable_error_msg_spec/spec/blender/drivers/ssh_spec.rb#L19
I have a possibly better solution to this, closing now.
Throwing this out here. This is to fix the output when an ssh command exits with non-zero status. The output currently is:
With this change, the output would be the content of stderr.
Feedback I would like to get:
raise ExecutionError, stderr
when a command fails. Is that crazy talk?If this PR seems reasonable, I will put up a different PR with tests, etc.