-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaquifer-drupalvm.js
42 lines (35 loc) · 1.26 KB
/
aquifer-drupalvm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @file
* Contains code that defines an Aquifer extension that can run an Aquifer project in a drupalvm instance.
*/
/**
* Extension that is exported to Aquifer.
* @param {object} Aquifer instance of Aquifer containing an active project.
* @param {object} AquiferDrupalVMConfig config object passed in from Aquifer project's json file.
* @returns {function} object that consumes Aquifer's extension API.
*/
module.exports = function(Aquifer, AquiferDrupalVMConfig) {
'use strict';
var AquiferDrupalVM = function () {};
/**
* Specifies commands that this extension provides.
* @returns {object} commands that this extension provides.
*/
AquiferDrupalVM.commands = function () {
return {
'vm': {
description: 'Launch, and provision drupalvm instance.'
}
}
}
/**
* Launches a drupalvm instance.
* @param {string} command string representing the name of the command that is being run.
* @param {object} options options passed from the command.
* @param {function} callback function that is called when there is an error message to send.
* @returns {boolean} true if command ran correctly, false otherwise.
*/
AquiferDrupalVM.run = function (command, options, callback) {
}
return AquiferDrupalVM;
}