Commit 2a7e0633 authored by Steven Jones's avatar Steven Jones

Issue #1513678 by Jon Pugh, fastangel, Steven Jones: Fixed Hooks based on...

Issue #1513678 by Jon Pugh, fastangel, Steven Jones: Fixed Hooks based on TASK_NAME should handle task names with dashes in them.
parent 17489345
<?php
/**
* @file
* Provision hooks for the provision backup_delete command.
* Provision hooks for the provision backup-delete command.
*/
/**
* Provision backup_delete command
* Provision backup-delete command
*
* These are the hooks that will be executed by the drush_invoke function
* when deleting a backup file from the backend.
......
......@@ -5,7 +5,7 @@
*/
/**
* Provision login_reset command
* Provision login-reset command
*
* These are the hooks that will be executed by the drush_invoke function
* when generating a one-time login reset URL.
......
......@@ -35,7 +35,7 @@
* nor any sites currently provisioned on it.
* unlock - Unlock a platform so that sites can be provisioned on it.
*
* login_reset - Generate a one-time login reset URL.
* login-reset - Generate a one-time login reset URL.
*/
......@@ -222,19 +222,19 @@ function provision_drush_command() {
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH
);
$items['provision-login_reset'] = array(
$items['provision-login-reset'] = array(
'description' => 'Generate a one-time login reset URL.',
'examples' => array(
'drush @site provision-login_reset' => 'Generate a one-time login reset URL for the site as defined by the site Drush alias generated with provision-save.',
'drush @site provision-login-reset' => 'Generate a one-time login reset URL for the site as defined by the site Drush alias generated with provision-save.',
),
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT
);
$items['provision-backup_delete'] = array(
$items['provision-backup-delete'] = array(
'description' => 'Delete a backup file.',
'arguments' => array('backup-file' => dt('The backup file to delete. This will be a gzipped tarball.')),
'examples' => array(
'drush @site provision-backup_delete /path/to/site_backup.tgz' => 'Delete a backup of this site as defined by the site Drush alias generated with provision-save.',
'drush @site provision-backup-delete /path/to/site_backup.tgz' => 'Delete a backup of this site as defined by the site Drush alias generated with provision-save.',
),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment