Mini Shell
3
{)c"
� @ s� d dl Z d dlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lm Z ee j
�G d
d� de jej��Z
G dd
� d
e
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� dej�ZdS )� N)�
add_metaclass� )�util)�FSWriteLabelError� )�availability)�fstask)�taskc @ s4 e Zd ZdZdZejdd�Zedd� �Z dd� Z
d S )
�FSWriteLabelzE An abstract class that represents writing a label for a filesystem. zwrite filesystem labelzarguments for writing a label)�docc C s t | j�g| j S )zqGet the command to label the filesystem.
:return: the command
:rtype: list of str
)�str�ext�args)�self� r �"/usr/lib/python3.6/fswritelabel.py�_set_command- s zFSWriteLabel._set_commandc C s4 | j }|rtdj|���tj| j�}|r0td��d S )N�
zlabel failed)Zavailability_errorsr �joinr Zrun_programr )r Z
error_msgsZrcr r r �do_task6 s zFSWriteLabel.do_taskN)�__name__�
__module__�__qualname__�__doc__�description�abc�abstractpropertyr �propertyr r r r r r r
"