rename Ssh class to SshInstance
This commit is contained in:
parent
3106945b47
commit
2d14617b13
@ -1,7 +1,7 @@
|
|||||||
import "typings-global"
|
import "typings-global"
|
||||||
import * as plugins from "./smartssh.plugins";
|
import * as plugins from "./smartssh.plugins";
|
||||||
|
|
||||||
export {Ssh} from "./smartssh.classes.ssh";
|
export {SshInstance} from "./smartssh.classes.sshinstance";
|
||||||
export {SshKey} from "./smartssh.classes.sshkey";
|
export {SshKey} from "./smartssh.classes.sshkey";
|
||||||
export {SshDir} from "./smartssh.classes.sshdir";
|
export {SshDir} from "./smartssh.classes.sshdir";
|
||||||
export {SshConfig} from "./smartssh.classes.sshconfig";
|
export {SshConfig} from "./smartssh.classes.sshconfig";
|
@ -4,9 +4,15 @@ import * as helpers from "./smartssh.classes.helpers";
|
|||||||
import {SshKey} from "./smartssh.classes.sshkey";
|
import {SshKey} from "./smartssh.classes.sshkey";
|
||||||
import {SshConfig} from "./smartssh.classes.sshconfig";
|
import {SshConfig} from "./smartssh.classes.sshconfig";
|
||||||
export class SshDir { // sshDir class -> NOT EXPORTED, ONLY FOR INTERNAL USE
|
export class SshDir { // sshDir class -> NOT EXPORTED, ONLY FOR INTERNAL USE
|
||||||
path:string;
|
path:string; // the path of the ssh directory
|
||||||
constructor(sshDirPathArg:string){
|
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[]){
|
sync(sshConfigArg:SshConfig,sshKeysArg:SshKey[]){
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ import {SshDir} from "./smartssh.classes.sshdir";
|
|||||||
import {SshConfig} from "./smartssh.classes.sshconfig";
|
import {SshConfig} from "./smartssh.classes.sshconfig";
|
||||||
import {SshKey} from "./smartssh.classes.sshkey";
|
import {SshKey} from "./smartssh.classes.sshkey";
|
||||||
|
|
||||||
export class Ssh {
|
export class SshInstance {
|
||||||
private sshConfig:SshConfig; // points to sshConfig class instance
|
private sshConfig:SshConfig; // sshConfig (e.g. represents ~/.ssh/config)
|
||||||
private sshDir:SshDir; // points to sshDir class instance.
|
private sshDir:SshDir; // points to sshDir class instance.
|
||||||
private sshKeys:SshKey[]; //holds all ssh keys
|
private sshKeys:SshKey[]; //holds all ssh keys
|
||||||
private sshSync:boolean; // if set to true, the ssh dir will be kept in sync automatically
|
private sshSync:boolean; // if set to true, the ssh dir will be kept in sync automatically
|
Loading…
Reference in New Issue
Block a user