keyboardcowboy/drush-denver
最新稳定版本:2.2.3
Composer 安装命令:
composer require keyboardcowboy/drush-denver
包简介
Customize modules, variables and permissions for each environment.
关键字:
README 文档
README
The Drupal ENVironemnt personalizER allows you to define macro settings to apply to your site in one command, such as enabling and disabling modules and setting variables.
Installation
Extract this repository into any of Drush's searchable paths for plugins:
-
A
.drushfolder in your HOME folder. -
Anywhere in a folder tree below an active module on your site.
-
/usr/share/drush/commands(configurable) -
In an arbitrary folder specified with the
--includeoption. -
Drupal's
/drushor/sites/all/drushfolders.
See drush topic docs-commands for more details
Configuration
These can be defined in two different files and only apply to the site directory in which they are defined.
-
sites/[default|example.com]/drush/env.drushrc.yml -
sites/[default|example.com]/drush/[dev.]env.drushrc.yml
Like aliases, in the first file you can define multiple aliases keyed on the definition name such as 'dev,' 'stage' or 'chris.' In the second example you can define each environment in a separate file and prefix the filename with the definition name.
The definitions are formatted as such: # Settings for your local environment. modules: enable: - module_name disable: - module_name
variables:
your_var: your_var_value
another_var: NULL
permissions:
RoleName:
permission_name: 0
commands:
# Using longhand notation.
command-name:
alias: @self
arguments:
arg1: arg1-val
options:
opt1: opt1-val
# Using shorthand notation.
command-name:
- yes
- arg1
- arg2
- --option1
How to Use It
You must be inside a Drupal site directory or use an alias for these commands to work.
-
Create a starter file
drush env-dir --make -
See which environments are available.
drush envdrush env-list -
Inspect the contents of an environment definition.
drush env [en-name] --infoEx.
drush env dev --info -
Run the environment settings for a single definition.
drush env [env-name]Ex.
drush env dev -
Combine multiple environments. The settings for the latter overriding the former.
drush env [env-name1]+[env-name2]Ex.
drush env dev+chris
统计信息
- 总下载量: 756
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-03-25