2016-05-31 17:16:45 +00:00
|
|
|
"use strict";
|
|
|
|
require("typings-global");
|
2016-06-01 00:31:29 +00:00
|
|
|
var plugins = require("./smartssh.plugins");
|
2016-05-31 17:16:45 +00:00
|
|
|
var helpers = require("./smartssh.classes.helpers");
|
|
|
|
var SshDir = (function () {
|
2016-06-01 01:57:17 +00:00
|
|
|
function SshDir(sshInstanceArg, sshDirPathArg) {
|
2016-06-01 00:31:29 +00:00
|
|
|
var sshDirPath;
|
|
|
|
if (sshDirPathArg) {
|
|
|
|
sshDirPath = sshDirPathArg;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
sshDirPath = plugins.smartpath.get.home();
|
|
|
|
}
|
|
|
|
this.path = sshDirPath;
|
2016-05-31 17:16:45 +00:00
|
|
|
}
|
2016-06-01 01:57:17 +00:00
|
|
|
SshDir.prototype.syncToDir = function () {
|
2016-05-31 17:16:45 +00:00
|
|
|
};
|
|
|
|
;
|
2016-06-01 00:31:29 +00:00
|
|
|
SshDir.prototype.syncFromDir = function () {
|
|
|
|
};
|
2016-05-31 17:16:45 +00:00
|
|
|
SshDir.prototype.getKeys = function () {
|
|
|
|
return helpers.sshKeyArrayFromDir(this.path);
|
|
|
|
};
|
|
|
|
return SshDir;
|
|
|
|
}());
|
|
|
|
exports.SshDir = SshDir;
|
|
|
|
|
2016-06-01 01:57:17 +00:00
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0c3NoLmNsYXNzZXMuc3NoZGlyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDeEIsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUM5QyxJQUFZLE9BQU8sV0FBTSw0QkFBNEIsQ0FBQyxDQUFBO0FBSXREO0lBR0ksZ0JBQVksY0FBMEIsRUFBQyxhQUFxQjtRQUN4RCxJ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