Mini Shell

Direktori : /lib64/python3.6/site-packages/pyanaconda/modules/boss/__pycache__/
Upload File :
Current File : //lib64/python3.6/site-packages/pyanaconda/modules/boss/__pycache__/boss_interface.cpython-36.pyc

3

C��e�
�@sbddlmZddlmZddlmZddlTddlmZddl	m
Z
eej�Gdd�de��Zd	S)
�)�dbus_interface)�BOSS)�InterfaceTemplate)�*)�
TaskContainer)�KickstartReportc@s�eZdZdZeed�dd�Zed�dd�Zee	d�dd	�Z
ed�d
d�Zed�d
d�Zed�dd�Z
ed�dd�Zdd�ZdS)�
BossInterfacezDBus interface for the Boss.)�returncCs
|jj�S)z�Get service names of running modules.

        Get a list of all running DBus modules (including addons)
        that were discovered and started by the boss.

        :return: a list of service names
        )�implementationZget_modules)�self�r�&/usr/lib64/python3.6/boss_interface.py�
GetModules szBossInterface.GetModulescCstj|jj��S)zOStart modules with the task.

        :return: a DBus path of the task
        )r�to_object_pathr
Zstart_modules_with_task)rrrr
�StartModulesWithTask*sz"BossInterface.StartModulesWithTask)�pathr	cCstj|jj|��S)z�Read the specified kickstart file.

        :param path: a path to a file
        :returns: a structure with a kickstart report
        )rZto_structurer
Zread_kickstart_file)rrrrr
�ReadKickstartFile3szBossInterface.ReadKickstartFilecCs
|jj�S)z[Return a kickstart representation of modules.

        :return: a kickstart string
        )r
Zgenerate_kickstart)rrrr
�GenerateKickstart=szBossInterface.GenerateKickstart)�localecCs|jj|�dS)zVSet locale of boss and all modules.

        Examples: "cs_CZ.UTF-8", "fr_FR"
        N)r
Z
set_locale)rrrrr
�	SetLocaleDszBossInterface.SetLocalecCstj|jj��S)z�Configure the runtime environment.

        FIXME: This method temporarily uses only addons.

        :return: a DBus path a task
        )rrr
Zconfigure_runtime_with_task)rrrr
�ConfigureRuntimeWithTaskKsz&BossInterface.ConfigureRuntimeWithTaskcCstj|jj��S)z~Install the system.

        FIXME: This method temporarily uses only addons.

        :return: a DBus path of a task
        )rrr
Zinstall_system_with_task)rrrr
�InstallSystemWithTaskVsz#BossInterface.InstallSystemWithTaskcCs|jj�dS)z(Stop all modules and then stop the boss.N)r
�stop)rrrr
�QuitaszBossInterface.QuitN)�__name__�
__module__�__qualname__�__doc__ZListZStrrZObjPathrZ	Structurerrrrrrrrrr
rs
	
rN)
Zdasbus.server.interfacerZ,pyanaconda.modules.common.constants.servicesrZ,pyanaconda.modules.common.base.base_templaterZ
dasbus.typingZ$pyanaconda.modules.common.containersrZ.pyanaconda.modules.common.structures.kickstartrZinterface_namerrrrr
�<module>s