start work on smartdeploy package

This commit is contained in:
LosslessBot
2016-04-20 02:13:48 +02:00
parent 97b58c3655
commit 9587dc7850
14 changed files with 107 additions and 2 deletions

4
ts/index.ts Normal file
View File

@ -0,0 +1,4 @@
/// <reference path ="./typings/main.d.ts" />
import plugins = require("./smartdeploy.plugins");
export import check = require("./smartdeploy.check");

16
ts/smartdeploy.check.ts Normal file
View File

@ -0,0 +1,16 @@
/// <reference path ="./typings/main.d.ts" />
import plugins = require("./smartdeploy.plugins");
let dockerVersion = undefined;
let parseDockerVersion = function(){
if (typeof dockerVersion === "undefined") {
dockerVersion = plugins.shelljs.exec("docker version").stdout;
} else {
};
};
export let docker = function(){
};

0
ts/smartdeploy.docker.ts Normal file
View File

15
ts/smartdeploy.get.ts Normal file
View File

@ -0,0 +1,15 @@
/// <reference path ="./typings/main.d.ts" />
import plugins = require("./smartdeploy.plugins");
let parseDockerVersion = function(){
plugins.shelljs.exec("docker version").stdout;
};
let dockerInfoObject = undefined;
export let dockerInfo = function(){
if (typeof dockerInfo === "undefined") {
dockerInfoObject = parseDockerVersion();
};
return dockerInfoObject
};

View File

@ -0,0 +1,3 @@
/// <reference path ="./typings/main.d.ts" />
export let beautylog = require("beautylog");
export let shelljs = require("shelljs");

10
ts/typings.json Normal file
View File

@ -0,0 +1,10 @@
{
"version": false,
"dependencies": {},
"ambientDependencies": {
"colors": "registry:dt/colors#0.6.0-1+20160317120654",
"mocha": "registry:dt/mocha#2.2.5+20160317120654",
"node": "registry:dt/node#4.0.0+20160330064709",
"should": "registry:dt/should#8.1.1+20160316155526"
}
}