%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/composer.pyo

�
���^c@@sNdZddlmZmZmZddlZddlZddlZ	ddl
Z	ddlmZm
Z
mZeje�Zidd6Zd�Zd�Zd	�Zdddddddddded
ddd�Zddddddddded
dd�Zddddddddded
dd
�Zddded
d�ZdS(u:
Use composer to install PHP dependencies for a directory
i(tabsolute_importtprint_functiontunicode_literalsN(tCommandExecutionErrortCommandNotFoundErrortSaltInvocationErrorulistulist_cC@stS(u
    Always load
    (tTrue(((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pyt__virtual__scC@stjjj|�rtStS(u5
    Validate the composer file is indeed there.
    (tsalttutilstpathtwhichRtFalse(tcomposer((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pyt_valid_composer#scC@s)dj|�}tjj|�r%tStS(u�
    Test to see if the vendor directory exists in this directory

    dir
        Directory location of the composer.json file

    CLI Example:

    .. code-block:: bash

        salt '*' composer.did_composer_install /var/www/application
    u
{0}/vendor(tformattosR
texistsRR(tdirtlockFile((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pytdid_composer_install,s
u/rootc	C@so|dk	r$|dkr*d}q*nd}t|�sQtdj||���n|dkrltd��n|dkr�|dkr�tdj|���n||ddg}|
dk	r�|jtjjj	|
��n|dk	r�|g|}n|dk	r|jd	|g�n|t
kr3|jd
�n|
t
krO|jd�n|t
krk|jd�n|t
kr�|jd
�n|t
kr�|jd�n|t
kr�|jd�n|	t
kr�|jd�n|dk	r	tjjj
|�}||d<n
i|d6}td|d|d|dt�}|ddkr[t|d��n|t
krkt
S|S(u
    Run PHP's composer with a specific action.

    If composer has not been installed globally making it available in the
    system PATH & making it executable, the ``composer`` and ``php`` parameters
    will need to be set to the location of the executables.

    action
        The action to pass to composer ('install', 'update', 'selfupdate', etc).

    directory
        Directory location of the composer.json file.  Required except when
        action='selfupdate'

    composer
        Location of the composer.phar file. If not set composer will
        just execute "composer" as if it is installed globally.
        (i.e. /path/to/composer.phar)

    php
        Location of the php executable to use with composer.
        (i.e. /usr/bin/php)

    runas
        Which system user to run composer as.

    prefer_source
        --prefer-source option of composer.

    prefer_dist
        --prefer-dist option of composer.

    no_scripts
        --no-scripts option of composer.

    no_plugins
        --no-plugins option of composer.

    optimize
        --optimize-autoloader option of composer. Recommended for production.

    no_dev
        --no-dev option for composer. Recommended for production.

    quiet
        --quiet option for composer. Whether or not to return output from composer.

    composer_home
        $COMPOSER_HOME environment variable

    extra_flags
        None, or a string containing extra flags to pass to composer.

    env
        A list of environment variables to be set prior to execution.
    uphpucomposeru5'composer.{0}' is not available. Couldn't find '{1}'.u!The 'action' argument is requiredu
selfupdateu5The 'directory' argument is required for composer.{0}u--no-interactionu	--no-ansiu
--working-diru--quietu--no-devu--prefer-sourceu
--prefer-distu--no-scriptsu--no-pluginsu--optimize-autoloaderu
COMPOSER_HOMEucmd.run_alltrunastenvtpython_shelluretcodeiustderrN(tNoneRRRRtextendRR	targstshlex_splitRtappendtdatatrepack_dictlistt__salt__RR(tactiont	directoryR
tphpRt
prefer_sourcetprefer_distt
no_scriptst
no_pluginstoptimizetno_devtquiett
composer_hometextra_flagsRtcmdtresult((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pyt
_run_composer?s^G


	c
C@s^tdd|d|d|d|d|d|d|d	|d
|d|	d|
d
|d|�
}
|
S(u�
    Install composer dependencies for a directory.

    If composer has not been installed globally making it available in the
    system PATH & making it executable, the ``composer`` and ``php`` parameters
    will need to be set to the location of the executables.

    directory
        Directory location of the composer.json file.

    composer
        Location of the composer.phar file. If not set composer will
        just execute "composer" as if it is installed globally.
        (i.e. /path/to/composer.phar)

    php
        Location of the php executable to use with composer.
        (i.e. /usr/bin/php)

    runas
        Which system user to run composer as.

    prefer_source
        --prefer-source option of composer.

    prefer_dist
        --prefer-dist option of composer.

    no_scripts
        --no-scripts option of composer.

    no_plugins
        --no-plugins option of composer.

    optimize
        --optimize-autoloader option of composer. Recommended for production.

    no_dev
        --no-dev option for composer. Recommended for production.

    quiet
        --quiet option for composer. Whether or not to return output from composer.

    composer_home
        $COMPOSER_HOME environment variable

    env
        A list of environment variables to be set prior to execution.

    CLI Example:

    .. code-block:: bash

        salt '*' composer.install /var/www/application

        salt '*' composer.install /var/www/application             no_dev=True optimize=True
    uinstallR!R
R"RR#R$R%R&R'R(R)R*R(R.(R!R
R"RR#R$R%R&R'R(R)R*RR-((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pytinstall�sG		c
C@sdtdd|ddd|d|d|d|d	|d
|d|d|d
|	d|
d|d|�}
|
S(uF
    Update composer dependencies for a directory.

    If `composer install` has not yet been run, this runs `composer install`
    instead.

    If composer has not been installed globally making it available in the
    system PATH & making it executable, the ``composer`` and ``php`` parameters
    will need to be set to the location of the executables.

    directory
        Directory location of the composer.json file.

    composer
        Location of the composer.phar file. If not set composer will
        just execute "composer" as if it is installed globally.
        (i.e. /path/to/composer.phar)

    php
        Location of the php executable to use with composer.
        (i.e. /usr/bin/php)

    runas
        Which system user to run composer as.

    prefer_source
        --prefer-source option of composer.

    prefer_dist
        --prefer-dist option of composer.

    no_scripts
        --no-scripts option of composer.

    no_plugins
        --no-plugins option of composer.

    optimize
        --optimize-autoloader option of composer. Recommended for production.

    no_dev
        --no-dev option for composer. Recommended for production.

    quiet
        --quiet option for composer. Whether or not to return output from composer.

    composer_home
        $COMPOSER_HOME environment variable

    env
        A list of environment variables to be set prior to execution.

    CLI Example:

    .. code-block:: bash

        salt '*' composer.update /var/www/application

        salt '*' composer.update /var/www/application             no_dev=True optimize=True
    uupdateR!R+u
--no-progressR
R"RR#R$R%R&R'R(R)R*R(R.(R!R
R"RR#R$R%R&R'R(R)R*RR-((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pytupdate,s J		cC@s4tdddd|d|d|d|d|�}|S(	u=
    Update composer itself.

    If composer has not been installed globally making it available in the
    system PATH & making it executable, the ``composer`` and ``php`` parameters
    will need to be set to the location of the executables.

    composer
        Location of the composer.phar file. If not set composer will
        just execute "composer" as if it is installed globally.
        (i.e. /path/to/composer.phar)

    php
        Location of the php executable to use with composer.
        (i.e. /usr/bin/php)

    runas
        Which system user to run composer as.

    quiet
        --quiet option for composer. Whether or not to return output from composer.

    composer_home
        $COMPOSER_HOME environment variable

    CLI Example:

    .. code-block:: bash

        salt '*' composer.selfupdate
    u
selfupdateR+u
--no-progressR
R"RR)R*(R.(R
R"RR)R*R-((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pyt
selfupdate�s$		(t__doc__t
__future__RRRtloggingtos.pathRtsalt.utils.argsRtsalt.utils.pathtsalt.exceptionsRRRt	getLoggert__name__tlogt__func_alias__RRRRRR.R/R0R1(((s9/usr/lib/python2.7/site-packages/salt/modules/composer.pyt<module>sn
				�MP

Zerion Mini Shell 1.0