Mailinglist Archive: yast-devel (62 mails)

< Previous Next >
Re: [yast-devel] Wizard UI Documentation
On Wed, 5 Mar 2014 15:22:33 +0100
Martin Vidner <mvidner@xxxxxxx> wrote:

On Wed, Mar 05, 2014 at 10:15:55AM +0100, Julian Zwickl wrote:

did you have a documentation about the YaST Wizard(UI) for Ruby?

We have the main site
referencing the UI bits,_User_Interface_Library

Sadly, that documents the YCP bindings, which we currently use with
only a slight translation to Ruby. There have been prototypes of a
Rubyish UI code, but we are not using that in production

To add something in ruby, you can check examples -
( but it is translated ruby, so not nice, but you should get at least
idea how it is called. I will gladly help you review your code to check

And how can I parse .ini configs? Does YaST have a special method?

Um, YaST does have a special method, and it will scare you away. For
an example,

$ grep -r sssd_conf /usr/share/YaST2

Please design your desired API and let's work together to fit in on
existing YaST libraries.

If you need only parse it and not write, then there is option to read
it via agent for string read and then parse it with a ini parser in
ruby. But it will add dependencies for your module.

< Previous Next >