A collection of custom drush scripts to provide shortcuts for actions related to deploying a site. One command copies the contents of the sites folder from one site to another, a second downloads Drupal and sets some custom symlinks, similar to the ones used in Drush multi.

Below is a reformat of the help for each command provided.

drush deploy-code
Duplicate the specified files within the site to another, overwriting those.
Examples:
drush deploy-code @self
Will copy the modules,themes,libraries folders from @self.dev to @self.demo for testing with content.
drush deploy-code @example.dev @example.prod
Will copy the modules,themes,libraries folders from @example.dev to @example.prod.
drush dec @example --origin=demo --target=prod
Will copy the modules, themes and libraries folders from the demo site within the example set of sites to the production site within the same subset.
drush dec @example --items="modules,drushrc.php,files"
Will copy the modules, files directories as well as the drushrc.php from the dev build of the @example site to the demo build.
Arguments:
origin
Either the site's general alias for automated selection, or option specific selection, or the specific site's alias.
target
Optional, can be a site specific alias to copy the code to.
Options:
--items
Which folders or files to replace, defaults to 'modules,themes,libraries'. These are the subfolders or files within the origin to duplicate in the target.
--origin
Only referred to when the argument isn't specific enough.
--target
Only referred to when matching arg is not there.
Aliases: dec
drush deploy-download
Downloads the latest version of Drupal, and establishes custom symlinks, as per the options.
Examples
drush deploy-download 7
Will download the recommended release of Drupal 7 to your current directory and replace some files with symlinks.
drush ded 6 --symlinks=0
Will download the recommended release of Drupal 6 to your current directory and not replace anyhing with symlinks.
drush ded @example --destination=/var/www/example.com --items=htaccess,php.ini,sites,profiles
Download to the parent directory of an established site and use all pre-configured optional symlinks.
Arguments:
core
A number or an alies to a Drupal install you'd like to replace. This gets the core version from that install and uses that install locations parent folder as the destination.
Options:
--destination
If using a number for the core argument, this is a way to specify the location. Will be overridden by the alias if passed as the argument.
--items
What items to establish symlinks to. Either an array can be provided, with keys being items in the Drupal root, targets being destinations to point to, or a list. List possibilities include htaccess,php.ini,sites,profiles. Defaults to list of sites and profiles.
--symlinks
Whether to establish symlinks or not, defaults to yes.
Aliases: ded
Short name
1541192