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-13 22:11:20 +00:00
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0c3NoLmNsYXNzZXMuc3NoZGlyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFDeEIsSUFBWSxPQUFPLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUM5QyxJQUFZLE9BQU8sV0FBTSw0QkFBNEIsQ0FBQyxDQUFBO0FBSXREO0lBR0ksZ0JBQVksY0FBMEIsRUFBQyxhQUFxQjtRQUN4RCxJ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