Module Expr Str ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Return CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad body Expr Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If BoolOpAnd CompareIs NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Return NameLoad If CompareIs SubscriptLoad NameLoad Index Str NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Str Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad TryExcept body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str body Expr Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad If CompareIs SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Str NameLoad Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad TryExcept body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list
N/A N/A 
Installation of Composer Packages
=================================

These states manage the installed packages for composer for PHP. Note that
either composer is installed and accessible via a bin directory or you can pass
the location of composer in the state.

.. code-block:: yaml

    get-composer:
      cmd.run:
        - name: 'CURL=`which curl`; $CURL -sS https://getcomposer.org/installer | php'
        - unless: test -f /usr/local/bin/composer
        - cwd: /root/

    install-composer:
      cmd.wait:
        - name: mv /root/composer.phar /usr/local/bin/composer
        - cwd: /root/
        - watch:
          - cmd: get-composer

    /path/to/project:
      composer.installed:
        - no_dev: true
        - require:
          - cmd: install-composer


    # Without composer installed in your PATH
    # Note: composer.phar must be executable for state to work properly
    /path/to/project:
      composer.installed:
        - composer: /path/to/composer.phar
        - php: /usr/local/bin/php
        - no_dev: true
 __future__ absolute_import salt.exceptions SaltException __virtual__ N/A N/A N/A N/A N/A 
    Only load if the composer module is available in __salt__
     N/A N/A composer.install __salt__ N/A installed N/A N/A name composer php user prefer_source prefer_dist no_scripts no_plugins optimize no_dev quiet composer_home always_check N/A None None None None None None None None None False /root True N/A N/A 
    Verify that the correct versions of composer dependencies are present.

    dir
        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)

    user
        Which system user to run composer as.

        .. versionadded:: 2014.1.4

    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

    always_check
        If True, _always_ run `composer install` in the directory.  This is the
        default behavior.  If False, only run `composer install` if there is no
        vendor directory present.
     N/A ret N/A name result comment changes name None N/A N/A did_install N/A N/A __salt__ N/A composer.did_composer_install name N/A N/A N/A always_check False did_install N/A N/A N/A ret N/A result True N/A N/A ret N/A comment Composer already installed this directory N/A ret N/A N/A N/A __opts__ N/A test True N/A N/A N/A did_install True N/A N/A install_status N/A N/A install_status not  N/A N/A ret N/A comment N/A N/A The state of "{0}" will be changed. format name N/A N/A ret N/A changes N/A old new N/A N/A composer install has {0}been run in {1} format install_status name N/A N/A composer install will be run in {0} format name N/A N/A ret N/A result None N/A ret N/A N/A N/A call N/A N/A __salt__ N/A composer.install name composer composer php php runas user prefer_source prefer_source prefer_dist prefer_dist no_scripts no_scripts no_plugins no_plugins optimize optimize no_dev no_dev quiet quiet composer_home composer_home N/A N/A N/A SaltException N/A err N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Error executing composer in '{0!r}': {1!r} format name err N/A ret N/A N/A ret N/A result True N/A N/A quiet True N/A N/A N/A ret N/A comment Composer install completed successfully, output silenced by quiet flag N/A N/A N/A ret N/A comment Composer install completed successfully N/A N/A ret N/A changes N/A stderr stdout N/A call N/A stderr N/A call N/A stdout N/A ret N/A update N/A N/A name composer php user prefer_source prefer_dist no_scripts no_plugins optimize no_dev quiet composer_home N/A None None None None None None None None None False /root N/A N/A 
    Composer update the directory to ensure we have the latest versions
    of all project dependencies.

    dir
        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)

    user
        Which system user to run composer as.

        .. versionadded:: 2014.1.4

    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
     N/A ret N/A name result comment changes name None N/A N/A is_installed N/A N/A __salt__ N/A composer.did_composer_install name N/A is_installed N/A N/A old_status N/A N/A composer install has not yet been run in {0} format name N/A N/A old_status N/A N/A composer install has been run in {0} format name N/A N/A N/A __opts__ N/A test True N/A N/A N/A ret N/A comment N/A N/A The state of "{0}" will be changed. format name N/A N/A ret N/A changes N/A old new old_status N/A N/A composer install/update will be run in {0} format name N/A N/A ret N/A result None N/A ret N/A N/A N/A call N/A N/A __salt__ N/A composer.update name composer composer php php runas user prefer_source prefer_source prefer_dist prefer_dist no_scripts no_scripts no_plugins no_plugins optimize optimize no_dev no_dev quiet quiet composer_home composer_home N/A N/A N/A SaltException N/A err N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Error executing composer in '{0!r}': {1!r} format name err N/A ret N/A N/A ret N/A result True N/A N/A quiet True N/A N/A N/A ret N/A comment Composer update completed successfully, output silenced by quiet flag N/A N/A N/A ret N/A comment Composer update completed successfully N/A N/A ret N/A changes N/A stderr stdout N/A call N/A stderr N/A call N/A stdout N/A ret N/A