403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/zcbuildout.cpython-310.pyc
o

;j��@s�dZddlZddlZdZe�e�Zdd�ZdZdZ	e
�ZiZiZ
dd	�Z	ddd�Zdd
d�Zddd�Zdd
ddddd
ddd
d
ejd
d
ddd
dfdd�ZdS)a"
Management of zc.buildout
=========================

This module is inspired from minitage's buildout maker
(https://github.com/minitage/minitage/blob/master/src/minitage/core/makers/buildout.py)

.. versionadded:: 2016.3.0

.. note::

    This state module is beta; the API is subject to change and no promise
    as to performance or functionality is yet present

Available Functions
-------------------

- built

  .. code-block:: yaml

      installed1
        buildout.installed:
          - name: /path/to/buildout

      installed2
        buildout.installed:
          - name: /path/to/buildout
          - parts:
            - a
            - b
          - python: /path/to/pythonpath/bin/python
          - unless: /bin/test_something_installed
          - onlyif: /bin/test_else_installed

�NZbuildoutcCsdtvrtSdS)z1
    Only load if zc.buildout libs available
    �buildout.buildout)Fz#buildout module could not be loaded)�__salt__�__virtualname__�rr�J/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/zcbuildout.py�__virtual__.srzUnexpected response from docker�cCs|tvr
t|t|<t|S)N)�FN_CACHEr)�fnrrr�__salt>srFc	Cs�|si}|dur
i}|rJ|dur|d}|�dd�}|r"|d|7}|�dd�}|sJ|r7t|t�r7|d|7}|�dd�}|rJt|t�rJ|d|7}||||d�S)N�status�comment�
�outr�outlog)�changes�result�namer
)�get�
isinstance�str)	�exec_statusrr
r�quietrZscommentrrrrr�_ret_statusDs0

�rcC�t||||dd�S)NT�rr
rrr�r�rrr
rrrr�_validb��rcCr)NFrrrrrr�_invalidlrr zbuildout.cfgr�debugcKs�i}d|vrt�d�|�dd�}|r|st�d�zt|�}Wnty+d}Ynwtd�}tdid|�d|�d	|�d
|�d|�d|�d
|�d|�d|	�d|
�d|�d|�d|
�d|�d|�d|�d|�d|��}|�t|di|��||d��|S)a�
    Install buildout in a specific directory

    It is a thin wrapper to modules.buildout.buildout

    name
        directory to execute in

    quiet

        do not output console & logs

    config
        buildout config to use (default: buildout.cfg)

    parts
        specific buildout parts to run

    user
        user used to run buildout as

        .. versionadded:: 2014.1.4

    env
        environment variables to set when running

    buildout_ver
        force a specific buildout version (1 | 2)

    test_release
        buildout accept test release

    new_st
        Forcing use of setuptools >= 0.7

    distribute
        use distribute over setuptools if possible

    offline
        does buildout run offline

    python
        python to use

    debug
        run buildout with -D debug flag

    onlyif
        Only execute cmd if statement on the host return 0

    unless
        Do not execute cmd if statement on the host return 0

    newest
        run buildout in newest mode

    verbose
        run buildout in verbose mode (-vvvvv)

    use_vt
        Use the new salt VT to stream output [experimental]

    loglevel
        loglevel for buildout commands
    �groupz-Passing 'group' is deprecated, just remove it�output_loglevelNzDPassing 'output_loglevel' is deprecated, please use loglevel insteadr�	directory�config�partsZrunas�env�buildout_ver�test_release�
distribute�new_st�offline�newest�pythonr!�verbose�onlyif�unless�use_vt�loglevel)rr)	�log�warningr�int�
ValueErrorr�dict�updater)rr%rr&�userr'r(r)r*r+r,r-r.r!r/r1r0r2r3�kwargs�retr#�funcrrr�	installedvsjW
����������	�
���
������r>)NrrNFN)NrrN)�__doc__�logging�sysr�	getLogger�__name__r4rZINVALID_RESPONSEZVALID_RESPONSE�object�NOTSETZ
MAPPING_CACHEr	rrrr �
executabler>rrrr�<module>sF%
	
�


�

Youez - 2016 - github.com/yon3zu
LinuXploit