@tahminator/pipeline 1.0.39 → 1.0.41
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/pulumi/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { OpMap, OpType,
|
|
1
|
+
import type { OpMap, OpType, UpResult } from "@pulumi/pulumi/automation";
|
|
2
|
+
import { type ChargedPreviewOutput } from "./strategy";
|
|
2
3
|
import { type PulumiClientCreateArgs } from "./types";
|
|
3
4
|
export declare class PulumiClient {
|
|
4
5
|
private readonly strategy;
|
|
@@ -9,6 +10,6 @@ export declare class PulumiClient {
|
|
|
9
10
|
private constructor();
|
|
10
11
|
static create(args: PulumiClientCreateArgs): Promise<PulumiClient>;
|
|
11
12
|
up(): Promise<UpResult>;
|
|
12
|
-
preview(): Promise<
|
|
13
|
+
preview(): Promise<ChargedPreviewOutput>;
|
|
13
14
|
static parseChangeSumaryToPrettyTable(changeSummary: OpMap): string;
|
|
14
15
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type UpResult } from "@pulumi/pulumi/automation";
|
|
2
2
|
import type { PulumiClientAzureStrategyArgs } from "../types";
|
|
3
|
-
import type { IPulumiClientStrategy } from "./types";
|
|
3
|
+
import type { ChargedPreviewOutput, IPulumiClientStrategy } from "./types";
|
|
4
4
|
export declare class AzurePulumiClientStrategy implements IPulumiClientStrategy {
|
|
5
5
|
private readonly stack;
|
|
6
6
|
private constructor();
|
|
7
7
|
static create(args: PulumiClientAzureStrategyArgs): Promise<AzurePulumiClientStrategy>;
|
|
8
8
|
up(): Promise<UpResult>;
|
|
9
|
-
preview(): Promise<
|
|
9
|
+
preview(): Promise<ChargedPreviewOutput>;
|
|
10
10
|
}
|
|
@@ -17,16 +17,20 @@ export class AzurePulumiClientStrategy {
|
|
|
17
17
|
}
|
|
18
18
|
async up() {
|
|
19
19
|
return this.stack.up({
|
|
20
|
-
color: "never",
|
|
21
|
-
diff: true,
|
|
22
20
|
refresh: true,
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
23
|
async preview() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
let buffer = "";
|
|
25
|
+
const result = await this.stack.preview({
|
|
26
|
+
onOutput: (out) => {
|
|
27
|
+
buffer += out;
|
|
28
|
+
},
|
|
29
29
|
refresh: true,
|
|
30
30
|
});
|
|
31
|
+
return {
|
|
32
|
+
...result,
|
|
33
|
+
cliOutput: buffer,
|
|
34
|
+
};
|
|
31
35
|
}
|
|
32
36
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { PreviewResult, UpResult } from "@pulumi/pulumi/automation";
|
|
2
|
+
export type ChargedPreviewOutput = PreviewResult & {
|
|
3
|
+
cliOutput: string;
|
|
4
|
+
};
|
|
2
5
|
export interface IPulumiClientStrategy {
|
|
3
6
|
up(): Promise<UpResult>;
|
|
4
|
-
preview(): Promise<
|
|
7
|
+
preview(): Promise<ChargedPreviewOutput>;
|
|
5
8
|
}
|
package/dist/pulumi/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare enum PulumiClientStrategy {
|
|
|
6
6
|
export interface IPulumiClientStrategyArgs {
|
|
7
7
|
strategy: PulumiClientStrategy;
|
|
8
8
|
envs: Record<string, string | undefined>;
|
|
9
|
+
useCli?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface PulumiClientAzureStrategyArgs extends IPulumiClientStrategyArgs, LocalProgramArgs {
|
|
11
12
|
strategy: PulumiClientStrategy.AZURE;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"author": "Tahmid Ahmed",
|
|
5
5
|
"description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.41",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "git+https://github.com/tahminator/pipeline.git"
|
|
9
9
|
},
|