start work on smartdeploy package
This commit is contained in:
4
ts/index.ts
Normal file
4
ts/index.ts
Normal 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
16
ts/smartdeploy.check.ts
Normal 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
0
ts/smartdeploy.docker.ts
Normal file
15
ts/smartdeploy.get.ts
Normal file
15
ts/smartdeploy.get.ts
Normal 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
|
||||
};
|
3
ts/smartdeploy.plugins.ts
Normal file
3
ts/smartdeploy.plugins.ts
Normal 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
10
ts/typings.json
Normal 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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user