-
Notifications
You must be signed in to change notification settings - Fork 41
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
feature: output a (remote) command into in a (File::)IO #22
Comments
The terminal solution would look like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scenario is to create
tgz
archives on a remote server (tar -czf --to-stdout directory
).Currently,
capture
ing the output will be done in memory which is not feasible for large output. Implementation could be specific for files (likecapture %Q{tar czf -O}, into_file: 'bigarchive.tgz'
) or preferrably more general (capture %Q{}, into_io: File.open(...)
).With a bit of headwrapping, this could also be modelled as
download_cmd_out tar_cmd, to: 'stdout.file'
.Note that while i refer to
tar
commands, this might be useful for other commands that produce a lot of data, too.The text was updated successfully, but these errors were encountered: