zoukankan      html  css  js  c++  java
  • Saltstack module composer 详解

    composer.update

    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:
    
        salt '*' composer.update /var/www/application
    
        salt '*' composer.update /var/www/application             no_dev=True optimize=True
    

    composer.did_composer_install

    Test to see if the vendor directory exists in this directory
    
    dir
        Directory location of the composer.json file
    
    CLI Example:
    
        salt '*' composer.did_composer_install /var/www/application
    

    composer.install

    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:
    
        salt '*' composer.install /var/www/application
    
        salt '*' composer.install /var/www/application             no_dev=True optimize=True
    

    composer.selfupdate

    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:
    
        salt '*' composer.selfupdate
  • 相关阅读:
    各种工具网站汇总
    Python中numpy库unique函数解析
    matlab中集合运算函数——解析
    hash算法搜索获得api函数地址的实现,"kernel32.dll", "CreateThread"
    PEB及LDR链
    PE文件结构及其加载机制
    spring boot2.0一看就会的超详细快速入门(七)-访问静态资源
    spring boot2.0一看就会的超详细快速入门(六)-集成Thymeleaf模板引擎
    spring boot2.0一看就会的超详细快速入门(五)-开发人员工具devtools
    spring boot2.0一看就会的超详细快速入门(四)-自动配置原理
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_composer.html
Copyright © 2011-2022 走看看