Skip to content

Instantly share code, notes, and snippets.

Created March 18, 2013 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5184623 to your computer and use it in GitHub Desktop.
Save anonymous/5184623 to your computer and use it in GitHub Desktop.
Add lazy github download support to drush make. This has been tested with drush make 5.8. It may work on earlier versions, but I haven't tested it.
; Example drush make file using the github download type.
api = 2
core = 7
projects[] = drupal
; Module
projects[bean_boxes][type] = "module"
projects[bean_boxes][download][type] = "github"
projects[bean_boxes][download][url] = "skwashd/bean_boxes"
; Library
projects[gitter][type] = "library"
projects[gitter][download][type] = "github"
projects[gitter][download][url] = "klaussilveira/gitter"
<?php
/**
* Github download support functions for drush make.
*/
/**
* Support lazy downloads from github.
*/
function make_download_github($name, $download, $download_location) {
$download['url'] = "git@github.com:{$download['url']}.git";
return make_download_git($name, $download, $download_location);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment