2016-05-31 19:00:52 +02:00
|
|
|
import "typings-global";
|
|
|
|
import * as plugins from "./smartssh.plugins";
|
|
|
|
import * as helpers from "./smartssh.classes.helpers";
|
2016-06-24 20:58:55 +02:00
|
|
|
import {SshKey} from "./smartssh.classes.sshkey"
|
|
|
|
|
2016-05-31 19:16:45 +02:00
|
|
|
export class SshConfig {
|
2016-06-24 20:58:55 +02:00
|
|
|
sshKeyArray:SshKey[];
|
|
|
|
constructor(sshKeyArrayArg:SshKey[]){
|
|
|
|
this.sshKeyArray = sshKeyArrayArg;
|
|
|
|
}
|
2016-06-25 02:29:34 +02:00
|
|
|
|
|
|
|
/**
|
2016-06-25 02:53:05 +02:00
|
|
|
* stores a config file
|
2016-06-25 02:29:34 +02:00
|
|
|
*/
|
2016-06-25 02:53:05 +02:00
|
|
|
storeConfig(dirPathArg:string){
|
|
|
|
let done = plugins.q.defer();
|
2016-06-25 02:29:34 +02:00
|
|
|
let configArray:configObject[];
|
2016-06-25 13:07:24 +02:00
|
|
|
|
2016-06-25 02:53:05 +02:00
|
|
|
return done.promise;
|
2016-05-31 19:00:52 +02:00
|
|
|
}
|
2016-06-25 13:07:24 +02:00
|
|
|
readConfig
|
2016-06-25 02:10:53 +02:00
|
|
|
};
|
|
|
|
|
2016-06-25 02:53:05 +02:00
|
|
|
let createConfigPath = () => {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-25 02:29:34 +02:00
|
|
|
export interface configObject {
|
2016-06-25 02:10:53 +02:00
|
|
|
host:string;
|
|
|
|
authorized:boolean;
|
|
|
|
sshKey:SshKey;
|
|
|
|
};
|
|
|
|
|