29 lines
2.9 KiB
JavaScript
29 lines
2.9 KiB
JavaScript
"use strict";
|
|
require("typings-global");
|
|
var plugins = require("./smartssh.plugins");
|
|
var helpers = require("./smartssh.classes.helpers");
|
|
var SshDir = (function () {
|
|
function SshDir(sshDirPathArg) {
|
|
var sshDirPath;
|
|
if (sshDirPathArg) {
|
|
sshDirPath = sshDirPathArg;
|
|
}
|
|
else {
|
|
sshDirPath = plugins.smartpath.get.home();
|
|
}
|
|
this.path = sshDirPath;
|
|
}
|
|
SshDir.prototype.syncToDir = function (sshInstanceArg) {
|
|
};
|
|
;
|
|
SshDir.prototype.syncFromDir = function () {
|
|
};
|
|
SshDir.prototype.getKeys = function () {
|
|
return helpers.sshKeyArrayFromDir(this.path);
|
|
};
|
|
return SshDir;
|
|
}());
|
|
exports.SshDir = SshDir;
|
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0c3NoLmNsYXNzZXMuc3NoZGlyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDeEIsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUM5QyxJQUFZLE9BQU8sV0FBTSw0QkFBNEIsQ0FBQyxDQUFBO0FBSXREO0lBRUksZ0JBQVksYUFBb0I7UUFDNUIsSUFBSSxVQUFpQixDQUFDO1FBQ3RCLEVBQUUsQ0FBQSxDQUFDLGFBQWEsQ0FBQyxDQUFBLENBQUM7WUFDZCxVQUFVLEdBQUcsYUFBYSxDQUFDO1FBQy9CLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNKLFVBQVUsR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUM5QyxDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksR0FBRyxVQUFVLENBQUM7SU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