I noticed that there is a way to make a restful call to the DRUPAL site just to interrogate a module about its dependancies?

for example, a module that requires additional modules... path auto requires token. Is there a restful call that would return token as the dependancy?

Is there a restful call that would return the GIT call for LIBRARIES....

I am trying to build a BASH file that will run DRUSH commands to DL all of my modules, the dependancies including other modules and libraries.

some assistance would be great.

this is a drupal 7 question, but I am also interested in the DRUPAL 8 strategy as well.
thanks

Comments

rajiv.singh’s picture

1) Save the following code as drupal.make
2) Now , on bash, use command
drush make --prepare-install drupal.make .

it will
1) download drupal 7.38
2) creates files folder and settings.php
3) downloads modules and put on proper places
4) It downloads Libraries from git

core = "7.x"
api = "2"

projects[drupal][version] = "7.38"

; Shared contrib modules
; ---------------------------------------
projects[strongarm][version] = "2.0"
projects[strongarm][contrib_destination] = "sites/all"
projects[strongarm][subdir] = "contrib"

projects[ctools][version] = "1.7"
projects[ctools][contrib_destination] = "sites/all"
projects[ctools][subdir] = "contrib"

projects[navbar][version] = "1.6"
projects[navbar][contrib_destination] = "sites/all"
projects[navbar][subdir] = "contrib"

projects[views][version] = "3.11"
projects[views][contrib_destination] = "sites/all"
projects[views][subdir] = "contrib"

projects[navbar][version] = "1.6"
projects[navbar][contrib_destination] = "sites/all"
projects[navbar][subdir] = "contrib"

projects[colorbox][version] = "2.8"
projects[colorbox][contrib_destination] = "profiles/standard"
projects[colorbox][subdir] = "contrib"

; libraries
; ---------------------------------------

; Library: Modernizr
libraries[modernizr][download][type] = git
libraries[modernizr][download][url] = https://github.com/BrianGilbert/modernizer-navbar.git
libraries[modernizr][download][revision] = 5b89d9225320e88588f1cdc43b8b1e373fa4c60f

; Library: Backbone
libraries[backbone][download][type] = git
libraries[backbone][download][url] = https://github.com/jashkenas/backbone.git
libraries[backbone][download][tag] = 1.0.0

; Library: Underscore
libraries[underscore][download][type] = git
libraries[underscore][download][url] = https://github.com/jashkenas/underscore.git
libraries[underscore][download][tag] = 1.5.0


; Library: CKEditor
libraries[ckeditor][download][type] = git
libraries[ckeditor][download][url] = https://github.com/ckeditor/ckeditor-releases.git
libraries[ckeditor][download][revision] = d983f70ea8ad710e404f628f42d833cdc3ba81b3

; Library: colorbox
libraries[colorbox][download][type] = git
libraries[colorbox][download][url] = git@github.com:jackmoore/colorbox.git
libraries[colorbox][download][revision] = 5283b68b49bb2311cbb6d3d2f4fefdeb7fd78575
libraries[colorbox][destination] = "../../profiles/standard/libraries"
irishgringo’s picture

My questions has kind of changed. I was thinking of doing a site that will generate this script for you, including the dependencies for an install. The script you mentioned above is what this system will create. This has probably already been done before, but I thought I would try to do it again anyway.

The concept would be a user logs into the DRUPgeneration site.
User is asked for... Drupal version, Theme, Modules.
Perhaps activate some specific modules and themes.

The form will return a BASH script that a USER can install a site from a DRUSH command... and I am looking to integrate this with DOCKER containers.

MY questions...
1... does this exist already? is it relevent?
2... I was looking for a DRUSH, or some other kind of command that would interrogate the DRUPAL.ORG site to get a JASON list of MODULES with their dependencies. I was looking to refresh the list everyday.
3... anyone interested in participating.
this is just a pet project

Doing Native iPHONE, ANDROID, Titanium, node.js and DRUPAL. as a contractor.

ramonismo’s picture

It´s possible win 10 bash use Drush?