On 06/19/2013 09:30 AM, Andrey Borzenkov wrote:
On Wed, Jun 19, 2013 at 11:17 AM, Lukas Ocilka
strongly suggest that you do not call systemctl from the module,
this is the most important part, please use the systemd dbus api for YAST.
I've thoroughly went through all the pros and cons and I will not use D-BUS
API as it's too low level and I would need to create special high-level API
(library) to be used from YaST, plus I would need to maintain it.
Using D-BUS API is similar to creating sockets and all the handling just to
download a file if I could simply use Net::HTTP.get instead.
Anyway, if there was a library (that could be used from Ruby) using D-BUS
API, I would use it.
Do you mean systemd specific bindings?
Yes, systemd specific. Of course, ruby-dbus exists.
Lukas Ocilka, Cloud & Systems Management Department
SUSE LINUX s.r.o., Praha
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org