You are here

function new_relic_rpm_drush_command in New Relic 7

Same name and namespace in other branches
  1. 8 new_relic_rpm.drush.inc \new_relic_rpm_drush_command()

Implements hook_drush_command().

File

./new_relic_rpm.drush.inc, line 34
New Relic Drush integration.

Code

function new_relic_rpm_drush_command() {
  $items = array();
  $items['newrelic-deploy'] = array(
    'callback' => '_new_relic_rpm_deploy',
    'description' => dt('Notify New Relic of a deployment.'),
    'arguments' => array(
      'user' => dt('Optional. User doing the deploy.'),
      'description' => dt('Optional. A brief description of the deployment.'),
      'changelog' => dt('Optional. List of changes for this deployment.'),
      'revision' => dt('Optional. Revision id of the deployment.'),
    ),
    'examples' => array(
      'drush nrd "user@example.com" "Big theme change" "Changelog with lots of other details" "4c6a03f"' => 'Create deployment mark with all arguments (in order)',
      'drush nrd "Deploy Bot 2020" "" "" "sprint-99"' => 'Example showing how to skip a couple of the arguments',
    ),
    'aliases' => array(
      'nrd',
    ),
  );
  return $items;
}