[augeas-devel] [Augeas] #228: Add aug_srun to ruby-augeas
Augeas
trac at fedorahosted.org
Fri Nov 18 00:01:05 UTC 2011
#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
More information about the augeas-devel
mailing list