Created
March 18, 2013 02:44
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Github download support functions for drush make. | |
*/ | |
/** | |
* Support lazy downloads from github. | |
*/ | |
function make_download_github($name, $download, $download_location) { | |
$download['url'] = "[email protected]:{$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