File: //lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyc
�
g��fc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l
m Z d d l m
Z
m Z d d l m Z d e f d � � YZ d
� Z d � Z d � Z e e e d e d d
d � Z d S( s�
:py:mod:`leapp.libraries.stdlib`
represents a location for functions that otherwise would be defined multiple times across leapp actors
and at the same time, they are really useful for other actors.
i����N( t
LeappError( t create_audit_entry( t api( t _callt STDOUT( t is_debugt CalledProcessErrorc B sb e Z d Z d � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z RS( s|
Leapp Call Process Exception Error.
Raised when the result of a called process is of a none zero return code.
c C s, t t | � j | � | | _ | | _ d S( s
Initialize CalledProcessError Exception.
:param message: An CalledProcessError exception message.
:param command: The command that has been executed, with its arguments.
:param result: A non-zero whatever result that the command returned.
N( t superR t __init__t _resultt command( t selft messageR
t result( ( sC /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyR s c C s | j j d � S( sH
Retrieve the stdout.
:return: Standard Output.
t stdout( R t get( R ( ( sC /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyR $ s c C s | j j d � S( sG
Retrieve the stderr.
:return: Standard Error.
t stderr( R R ( R ( ( sC /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyR , s c C s | j j d � S( sH
Retrieve the exit code.
:return: An exit code.
t exit_code( R R ( R ( ( sC /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyR 4 s c C s | j j d � S( s~
Retrieve the signal which the process was signalled by.
:return: A signal that the process received.
t signal( R R ( R ( ( sC /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.pyR <