Drush for fun and profit

Speakers: 

As an experienced Drupal site-builder or developer, you're obviously already familiar with Drush and some of its myriad extensions. But have you ever written a shell script to wrap around a half-dozen Drush commands, or just because it's a hassle to write out long options? Drush aliases might just be a better choice.

How about writing a script starting with "#!/usr/bin/env drush"? Oh, you didn't know Drush allowed for simple and powerful shell scripting?

Ever thought about writing your very own Drush command, but felt intimidated? It's not as hard as you may think. In fact, Drush provides a whole host of helpers to make extending it fairly easy, and even fun! Did you know that you get almost a dozen hooks provided automatically for any command you define? These also let you alter the behaviour of every other Drush command.

If you're already a Drupal module maintainer, adding Drush integration to your module is a snap. All you need is a .drush.inc file and you're ready to start implementing Drush hooks.

In addition to covering all that, in this session we'll:

  • Explore the Drush API and related resources
  • Explain how 'engines' can isolate Drupal version-specific code
  • Build some simple extensions
  • Look at what's coming up in Drush 7
Schedule info
Experience level: 
Advanced
Drupal Version: 
N/A