updated structure of SshConfig
This commit is contained in:
parent
cac8203bf5
commit
f5ff302d4d
4
dist/smartssh.classes.sshconfig.d.ts
vendored
4
dist/smartssh.classes.sshconfig.d.ts
vendored
@ -4,9 +4,9 @@ export declare class SshConfig {
|
||||
sshKeyArray: SshKey[];
|
||||
constructor(sshKeyArrayArg: SshKey[]);
|
||||
/**
|
||||
* the current config
|
||||
* stores a config file
|
||||
*/
|
||||
config: configObject[];
|
||||
storeConfig(dirPathArg: string): any;
|
||||
}
|
||||
export interface configObject {
|
||||
host: string;
|
||||
|
24
dist/smartssh.classes.sshconfig.js
vendored
24
dist/smartssh.classes.sshconfig.js
vendored
@ -1,24 +1,24 @@
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
var plugins = require("./smartssh.plugins");
|
||||
var SshConfig = (function () {
|
||||
function SshConfig(sshKeyArrayArg) {
|
||||
this.sshKeyArray = sshKeyArrayArg;
|
||||
}
|
||||
Object.defineProperty(SshConfig.prototype, "config", {
|
||||
/**
|
||||
* the current config
|
||||
*/
|
||||
get: function () {
|
||||
var configArray;
|
||||
return configArray;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
/**
|
||||
* stores a config file
|
||||
*/
|
||||
SshConfig.prototype.storeConfig = function (dirPathArg) {
|
||||
var done = plugins.q.defer();
|
||||
var configArray;
|
||||
return done.promise;
|
||||
};
|
||||
return SshConfig;
|
||||
}());
|
||||
exports.SshConfig = SshConfig;
|
||||
;
|
||||
var createConfigPath = function () {
|
||||
};
|
||||
;
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0c3NoLmNsYXNzZXMuc3NoY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFLeEI7SUFFSSxtQkFBWSxjQUF1QjtRQUMvQixJQUFJLENBQUMsV0FBVyxHQU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G9ydCBjbGFzcyBTc2hDb25maWcge1xuICAgIHNzaEtleUFycmF5OlNzaEtleVtdO1xuICAgIGNvbnN0cnVjdG9yKHNzaEtleUFycmF5QXJnOlNzaEtleVtdKXtcbiAgICAgICAgdGhpcy5zc2hLZXlBcnJheSA9IHNzaEtleUFycmF5QXJnO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHN0b3JlcyBhIGNvbmZpZyBmaWxlXG4gICAgICovXG4gICAgc3RvcmVDb25maWcoZGlyUGF0aEFyZzpzdHJpbmcpe1xuICAgICAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xuICAgICAgICBsZXQgY29uZmlnQXJyYXk6Y29uZmlnT2JqZWN0W107XG5cbiAgICAgICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcbiAgICB9XG59O1xuXG5sZXQgY3JlYXRlQ29uZmlnUGF0aCA9ICgpID0+IHtcbiAgICBcbn1cblxuZXhwb3J0IGludGVyZmFjZSBjb25maWdPYmplY3Qge1xuICAgIGhvc3Q6c3RyaW5nO1xuICAgIGF1dGhvcml6ZWQ6Ym9vbGVhbjtcbiAgICBzc2hLZXk6U3NoS2V5O1xufTtcblxuIl19
|
||||
|
1
dist/smartssh.plugins.d.ts
vendored
1
dist/smartssh.plugins.d.ts
vendored
@ -4,5 +4,6 @@ export declare let base64: any;
|
||||
export declare let fs: any;
|
||||
export declare let minimatch: any;
|
||||
export import path = require("path");
|
||||
export declare let q: any;
|
||||
export import smartfile = require("smartfile");
|
||||
export import smartpath = require("smartpath");
|
||||
|
3
dist/smartssh.plugins.js
vendored
3
dist/smartssh.plugins.js
vendored
@ -5,7 +5,8 @@ exports.base64 = require("js-base64").Base64;
|
||||
exports.fs = require("fs-extra");
|
||||
exports.minimatch = require("minimatch");
|
||||
exports.path = require("path");
|
||||
exports.q = require("q");
|
||||
exports.smartfile = require("smartfile");
|
||||
exports.smartpath = require("smartpath");
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;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IpO1xuZXhwb3J0IGltcG9ydCBzbWFydHBhdGggPSByZXF1aXJlKFwic21hcnRwYXRoXCIpOyJdfQ==
|
||||
|
@ -27,6 +27,7 @@
|
||||
"fs-extra": "^0.30.0",
|
||||
"js-base64": "^2.1.9",
|
||||
"minimatch": "^3.0.2",
|
||||
"q": "^1.4.1",
|
||||
"smartfile": "^4.0.5",
|
||||
"smartpath": "^3.2.2",
|
||||
"typings-global": "^1.0.3",
|
||||
|
@ -10,14 +10,20 @@ export class SshConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* the current config
|
||||
* stores a config file
|
||||
*/
|
||||
get config(){
|
||||
storeConfig(dirPathArg:string){
|
||||
let done = plugins.q.defer();
|
||||
let configArray:configObject[];
|
||||
return configArray;
|
||||
|
||||
return done.promise;
|
||||
}
|
||||
};
|
||||
|
||||
let createConfigPath = () => {
|
||||
|
||||
}
|
||||
|
||||
export interface configObject {
|
||||
host:string;
|
||||
authorized:boolean;
|
||||
|
@ -4,5 +4,6 @@ export let base64 = require("js-base64").Base64;
|
||||
export let fs = require("fs-extra");
|
||||
export let minimatch = require("minimatch");
|
||||
export import path = require("path");
|
||||
export let q = require("q");
|
||||
export import smartfile = require("smartfile");
|
||||
export import smartpath = require("smartpath");
|
Loading…
Reference in New Issue
Block a user