@@ -19,15 +19,69 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
1919
2020'use strict' ;
2121
22+ /**
23+ * Command line interface
24+ * @module docker-compose-manager/docker-compose-manager
25+ */
26+
2227var cmd = require ( './cmd/cmd' ) ;
2328
2429module . exports = {
30+ /**
31+ * Docker compose up command. This up a docker-compose.yaml given
32+ * @param {string } file - The file with docker-componse that will be upped.
33+ * @param {object } options - Options object.
34+ * @return {Promise } A promise.
35+ */
2536 dockerComposeUp : dockerComposeUp ,
37+
38+ /**
39+ * Docker compose down command. This down a docker-compose.yaml given
40+ * @param {string } file - The file with docker-componse that will be down.
41+ * @param {object } options - Options object.
42+ * @return {Promise } A promise.
43+ */
2644 dockerComposeDown : dockerComposeDown ,
45+
46+ /**
47+ * Docker compose stop command. This stop a docker-compose.yaml given
48+ * @param {string } file - The file with docker-componse that will be stopped.
49+ * @param {object } options - Options object.
50+ * @return {Promise } A promise.
51+ */
2752 dockerComposeStop : dockerComposeStop ,
53+
54+ /**
55+ * Docker compose start command. This start a docker-compose.yaml given
56+ * @param {string } file - The file with docker-componse that will be started.
57+ * @param {object } options - Options object.
58+ * @return {Promise } A promise.
59+ */
2860 dockerComposeStart : dockerComposeStart ,
61+
62+ /**
63+ * Docker exec command. This execute a command on the container given
64+ * @param {string } container - The container where the command will be executed.
65+ * @param {object } exec_command - The command will be executed
66+ * @param {string } options - Options object.
67+ * @return {Promise } A promise.
68+ */
2969 dockerExec : dockerExec ,
70+
71+ /**
72+ * This method return the IP of a container given
73+ * @param {string } container - The container that will be inspected.
74+ * @param {string } options - Options object. options.network
75+ * @return {Promise } A promise.
76+ */
3077 dockerInspectIPAddressOfContainer : dockerInspectIPAddressOfContainer ,
78+
79+ /**
80+ * This method return the PORT of a container given
81+ * @param {string } container - The container that will be inspected.
82+ * @param {string } options - Options object. options.network
83+ * @return {Promise } A promise.
84+ */
3185 dockerInspectPortOfContainer : dockerInspectPortOfContainer
3286} ;
3387
0 commit comments