ramm 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ramm.js +2 -2
- package/dist/types/ssh.d.ts +1 -1
- package/package.json +1 -1
package/dist/ramm.js
CHANGED
|
@@ -271,11 +271,11 @@ var writeIfNew = async (rawFilePath, str) => {
|
|
|
271
271
|
};
|
|
272
272
|
// src/ssh.ts
|
|
273
273
|
import { debug } from "console";
|
|
274
|
-
var addKeyToHostConfig = async (address, pathToKey) => {
|
|
274
|
+
var addKeyToHostConfig = async (pathToHost, address, pathToKey) => {
|
|
275
275
|
const text = `Host ${address}
|
|
276
276
|
IdentityFile ${pathToKey}
|
|
277
277
|
`;
|
|
278
|
-
await writeIfNew(
|
|
278
|
+
await writeIfNew(pathToHost, text);
|
|
279
279
|
};
|
|
280
280
|
var getServerFingerprintBySsh = async (context) => {
|
|
281
281
|
const { output } = await execBySsh('ssh-keyscan -t ed25519 localhost | grep -v "^#"', context);
|
package/dist/types/ssh.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Context } from "./context.ts";
|
|
2
|
-
export declare const addKeyToHostConfig: (address: string, pathToKey: string) => Promise<void>;
|
|
2
|
+
export declare const addKeyToHostConfig: (pathToHost: string, address: string, pathToKey: string) => Promise<void>;
|
|
3
3
|
export declare const getServerFingerprintBySsh: (context: Context) => Promise<string>;
|
|
4
4
|
export declare const createAndAddSshKey: (pathToKey: string, comment: string, context: Context) => Promise<void>;
|
package/package.json
CHANGED