Skip to content
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

Merged
merged 4 commits into from
Sep 30, 2017
Merged

Enahncing the build call to stream output to the terminal. #6

merged 4 commits into from
Sep 30, 2017

Conversation

dkolb
Copy link
Contributor

@dkolb dkolb commented Sep 18, 2017

Streaming output to stdout helps with some CI servers that will time out long running commands with no output.

@dkolb
Copy link
Contributor Author

dkolb commented Sep 18, 2017

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. ^_^

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)
Copy link
Owner

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.

Copy link
Contributor Author

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.

@dkolb
Copy link
Contributor Author

dkolb commented Sep 19, 2017

Let me know if you want me to squash the commits before you merge. :-)

Copy link
Owner

@zl4bv zl4bv left a 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?

@dkolb
Copy link
Contributor Author

dkolb commented Sep 29, 2017

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?

@zl4bv
Copy link
Owner

zl4bv commented Sep 30, 2017

No worries :) Happy to deal with the gem version.

@zl4bv zl4bv merged commit ad33565 into zl4bv:master Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants