davereid / drush-acquia-hook-invoke
Drush 命令,旨在让您测试在本地 Drupal 安装上执行 Acquia Cloud 插件
dev-master
2018-02-19 15:47 UTC
Requires
- php: >=5.3.0
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-09-20 07:49:47 UTC
README
这是一个 Drush 命令,旨在让您测试在本地 Drupal 安装上执行 Acquia Cloud 插件(用于开发或调试等)。
要求
- 必须在 Git 仓库内部的 Drupal 安装上运行。
- 根 Git 仓库中必须有一个名为 hooks 的目录。
- 理想情况下,您可以使用类似
@sitename.local
的 Drush 别名运行此命令,该别名的语法与 Acquia 网站别名相同。
用法
理想情况下,您可以使用类似 @sitename.local
的 Drush 别名运行此命令,该别名的语法与 Acquia 网站别名相同。
$ drush @mysite.local ac-hook-invoke post-code-deploy --source-branch=master --deployed-tag=test-tag
有关可用选项的更多信息,请参阅 drush help ac-hook-invoke
Invoke an Acquia cloud hook on the current local environment.
Examples:
drush @mysite.local ac-hook-invoke Run the post-code-deploy hook scripts.
post-code-deploy --source-branch=master
--deployed-tag="test-tag"
Arguments:
hook The hook to invoke. For example, post-code-deploy
Options:
--ac-env The environment to which code was just deployed.
--ac-site The site name. This is the same as the Acquia Cloud username for the site.
--deployed-tag The code branch or tag being deployed.
--repo-type The version control system your site is using; "git" or "svn".
--repo-url The URL of your code repository.
--source-branch The code branch or tag being deployed.