open(module => $module, ui => $ui);
Unified method to open YaST module while using LibyuiClient. Allows to open the module with both ncurses and Qt UI. After starting the module ensures that connection to libyui-rest-api server is established.
$module
- Module to open. e.g. lan, storage, partitioner etc. (full list of available yast2 modules can be observed by running 'yast2 -l' in console); $ui
- User interface the module is expected to be opened with (Possible values: ncurses, qt).
close(module => $module, timeout => $timeout);
Ensure the module has exited by checking with a timeout the serial output.
module
module to wait for exit. timeout
timeout to wait on the serial.
run_actions(CODEREF, @args)
Open the module using $args, execute CODEREF and ensure the module has exited
by checking with a timeout the serial output.
$module
- Module to open (i.e.: lan, storage, partitioner). $ui
- User interface to open the module (i.e. : ncurses, qt). $timeout
- timeout to wait on the serial.