Mini Shell
3
C��e�
� @ sb d dl mZ d dlmZ d dlmZ d dlT d dlmZ d dl m
Z
eej�G dd� de��Zd S )
� )�dbus_interface)�BOSS)�InterfaceTemplate)�*)�
TaskContainer)�KickstartReportc @ s� e Zd ZdZee d�dd�Zed�dd�Zee d�dd �Z
ed�d
d�Zed�d
d�Zed�dd�Z
ed�dd�Zdd� ZdS )�
BossInterfacezDBus interface for the Boss.)�returnc C s
| j j� 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 s zBossInterface.GetModulesc C s t j| jj� �S )zOStart modules with the task.
:return: a DBus path of the task
)r �to_object_pathr
Zstart_modules_with_task)r r r r
�StartModulesWithTask* s z"BossInterface.StartModulesWithTask)�pathr c C s t j| jj|��S )z�Read the specified kickstart file.
:param path: a path to a file
:returns: a structure with a kickstart report
)r Zto_structurer
Zread_kickstart_file)r r r r r
�ReadKickstartFile3 s zBossInterface.ReadKickstartFilec C s
| j j� S )z[Return a kickstart representation of modules.
:return: a kickstart string
)r
Zgenerate_kickstart)r r r r
�GenerateKickstart= s zBossInterface.GenerateKickstart)�localec C s | j j|� dS )zVSet locale of boss and all modules.
Examples: "cs_CZ.UTF-8", "fr_FR"
N)r
Z
set_locale)r r r r r
� SetLocaleD s zBossInterface.SetLocalec C s t j| jj� �S )z�Configure the runtime environment.
FIXME: This method temporarily uses only addons.
:return: a DBus path a task
)r r r
Zconfigure_runtime_with_task)r r r r
�ConfigureRuntimeWithTaskK s z&BossInterface.ConfigureRuntimeWithTaskc C s t j| jj� �S )z~Install the system.
FIXME: This method temporarily uses only addons.
:return: a DBus path of a task
)r r r
Zinstall_system_with_task)r r r r
�InstallSystemWithTaskV s z#BossInterface.InstallSystemWithTaskc C s | j j� dS )z(Stop all modules and then stop the boss.N)r
�stop)r r r r
�Quita s zBossInterface.QuitN)�__name__�
__module__�__qualname__�__doc__ZListZStrr ZObjPathr Z Structurer r r r r r r r r r
r s
r N)
Zdasbus.server.interfacer Z,pyanaconda.modules.common.constants.servicesr Z,pyanaconda.modules.common.base.base_templater Z
dasbus.typingZ$pyanaconda.modules.common.containersr Z.pyanaconda.modules.common.structures.kickstartr Zinterface_namer r r r r
�<module> s