#228: Add aug_srun to ruby-augeas
--------------------------+-------------------------------------------------
Reporter: domcleal | Owner: lutter
Type: enhancement | Status: assigned
Priority: minor | Milestone: next
Component: Augeas | Version: 0.9.0
Resolution: | Keywords: aug_srun ruby
--------------------------+-------------------------------------------------
Comment (by lutter):
Replying to [comment:3 domcleal]:
> So aug_srun does take a string, *text, for the commands but sends the
results back to *out. The only way I could see of handling it in Ruby
itself was to use a temp file and pass the fd through.
>
> Having thought about it again, we could just use something similar to
Augeas's __aug_init_memstream internal functions to make a string
available to Ruby callers with the results.
The temp file route is essentially what __aug_init_memstream does on non-
glibc systems; seeing how closely ruby-augeas is tied to augeas, I'd be
inclined to just use __aug_init_memstream. Of course, now we need to
remember to not modify this API.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/228#comment:4>
Augeas <http://augeas.net/>
a configuration API
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel