@taole/deploy-helper 1.0.0-beta.6 → 1.0.0
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/index.mjs +387 -34
- package/lib/login.mjs +167 -0
- package/lib/offlinePkg.mjs +314 -0
- package/lib/pipelineApi.mjs +1 -2
- package/lib/project.mjs +346 -0
- package/lib/upload.js +49 -0
- package/lib/util.mjs +85 -0
- package/modules/alibabacloud-devops-mcp-server/dist/operations/flow/pipeline.js +8 -1
- package/package.json +10 -5
- package/deploy.mjs +0 -203
- package/deploy2.mjs +0 -275
- package/util.mjs +0 -22
package/util.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Client } from 'node-scp'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export function hasChangeMe(content) {
|
|
5
|
-
return content.includes("CHANGE_ME");
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const TEST_SERVER_HOST = "192.168.0.35";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export async function getScpClient() {
|
|
13
|
-
let scpClient = null;
|
|
14
|
-
const scpClientConfig = {
|
|
15
|
-
host: TEST_SERVER_HOST,
|
|
16
|
-
username: 'root',
|
|
17
|
-
tryKeyboard: false,
|
|
18
|
-
password: 'tuwan123!@#', // u cant see me
|
|
19
|
-
}
|
|
20
|
-
scpClient = await Client(scpClientConfig);
|
|
21
|
-
return scpClient;
|
|
22
|
-
}
|