-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enahncing the build call to stream output to the terminal. #6
Conversation
Did a force push to squash it down to one commit. I had a lingering pry and didn't even add any rspecs. Should be good to go now. ^_^ |
lib/packer/client.rb
Outdated
end | ||
|
||
# @api private | ||
# @param [Array<String>] args to pass to Packer | ||
def command(args) | ||
# @param Boolean set to true to stream output to $stdout | ||
def command(args, stream = false) |
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.
Rather than a boolean to toggle streaming to stdout, how about a keyword argument that allows any IO object to be passed in, including $stdout
, and defaults to nil
to disable live streaming.
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.
Actually, that makes a lot more sense. I'll get it updated today.
Let me know if you want me to squash the commits before you merge. :-) |
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.
Sorry, one last thing - could you please update the README to show how to use it?
Sorry for the delay. Been dealing with a move and some time crunches at work. :-) EDIT: Also did you want me to increment the gem version or did you want to handle that? |
No worries :) Happy to deal with the gem version. |
Streaming output to stdout helps with some CI servers that will time out long running commands with no output.