%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/poudriere.pyo |
� ���^c @@ s d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z e j e � Z d � Z d � Z d � Z d d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z e d � Z d S( u Support for poudriere i ( t absolute_importt print_functiont unicode_literalsNc C@ s7 t d d k r) t j j j d � r) d St d f Sd S( u@ Module load on freebsd only and if poudriere installed u osu FreeBSDu poudriereuo The poudriere execution module failed to load: only available on FreeBSD with the poudriere binary in the path.N( t __grains__t saltt utilst patht whicht False( ( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt __virtual__ s %c C@ s t d d � S( u0 Return the config file location to use u config.optionu poudriere.config( t __salt__( ( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt _config_file s c C@ s t d d � S( u3 Return the configuration directory to use u config.optionu poudriere.config_dir( R ( ( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt _config_dir$ s c C@ s2 | d k r t � } n t j j | � s. t St S( u+ Verify the config file is present N( t NoneR t osR t isfileR t True( t config_file( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt _check_config_exists+ s c C@ s8 t � } x( | D] } | j � d | k r t Sq Wt S( u� Return True if jail exists False if not CLI Example: .. code-block:: bash salt '*' poudriere.is_jail <jail name> i ( t list_jailst splitR R ( t namet jailst jail( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt is_jail6 s c C@ s i i d 6} t � } t j j | � sm t j | � t j j | � r] d j | � | d <qm d j | � Sn t d d j t j j | | � � d � t j j t j j | | � d � r� d j t j j | d j | � � � | d <| Sd j t j j | | d � � Sd S( u� Make jail ``jname`` pkgng aware CLI Example: .. code-block:: bash salt '*' poudriere.make_pkgng_aware <jail name> u changesu# Created poudriere make file dir {0}u/ Could not create or find required directory {0}u file.writeu {0}-make.confu WITH_PKGNG=yesu -make.confu Created {0}u( Looks like file {0} could not be createdN( R R R t isdirt makedirst formatR t joinR ( t jnamet rett cdir( ( s: /usr/lib/python2.7/site-packages/salt/modules/poudriere.pyt make_pkgng_awareG s )%%c C@ s� | d k r t � } n i } t | � r� t j j j | � �F } x<