rename Ssh class to SshInstance

This commit is contained in:
2016-06-01 00:56:24 +02:00
parent 3106945b47
commit 2d14617b13
3 changed files with 11 additions and 5 deletions

View File

@ -4,9 +4,15 @@ import * as helpers from "./smartssh.classes.helpers";
import {SshKey} from "./smartssh.classes.sshkey";
import {SshConfig} from "./smartssh.classes.sshconfig";
export class SshDir { // sshDir class -> NOT EXPORTED, ONLY FOR INTERNAL USE
path:string;
path:string; // the path of the ssh directory
constructor(sshDirPathArg:string){
this.path = sshDirPathArg;
let sshDirPath:string;
if(sshDirPathArg){
sshDirPath = sshDirPathArg;
} else {
sshDirPath = plugins.smartpath.home
}
this.path = sshDirPath;
}
sync(sshConfigArg:SshConfig,sshKeysArg:SshKey[]){