davereid/drush-acquia-hook-invoke

Drush command designed to let you test execution of Acquia Cloud hooks on your local Drupal installation

Maintainers

👁 Dave Reid

Package info

bitbucket.org/davereid/drush-acquia-hook-invoke

Issues

Type:drupal-drush

pkg:composer/davereid/drush-acquia-hook-invoke

Statistics

Installs: 7 200

Dependents: 0

Suggesters: 2

dev-master 2018-02-19 15:47 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 95f47a8cfee271fa3d29e3551c4fb083618a2bbf

acquiaDrush

This package is auto-updated.

Last update: 2026-06-20 11:32:11 UTC


README

This is a Drush command designed to let you test execution of Acquia Cloud hooks on your local Drupal installation (for development or debugging, etc.).

Requirements

  • Must be run from a Drupal installation that is inside a Git repository.
  • There must be a directory called hooks in the root Git repository.
  • Ideally you run this using a Drush alias like @sitename.local that mirrors the syntax of the Acquia site aliases.

Usage

Ideally you run this using a Drush alias like @sitename.local that mirrors the syntax of the Acquia site aliases.

$ drush @mysite.local ac-hook-invoke post-code-deploy --source-branch=master --deployed-tag=test-tag

For more help about the available options, see 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.