@pulumi/command 0.0.1-alpha.1640827590 → 0.0.1-testwindows.signing
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/README.md +101 -14
- package/index.d.ts +3 -1
- package/index.js +5 -16
- package/index.js.map +1 -1
- package/local/command.d.ts +314 -10
- package/local/command.js +117 -29
- package/local/command.js.map +1 -1
- package/local/index.d.ts +7 -1
- package/local/index.js +15 -7
- package/local/index.js.map +1 -1
- package/local/run.d.ts +391 -0
- package/local/run.js +46 -0
- package/local/run.js.map +1 -0
- package/package.json +16 -4
- package/package.json.dev +15 -3
- package/provider.js +12 -14
- package/provider.js.map +1 -1
- package/remote/command.d.ts +128 -9
- package/remote/command.js +95 -29
- package/remote/command.js.map +1 -1
- package/remote/copyFile.d.ts +13 -1
- package/remote/copyFile.js +34 -27
- package/remote/copyFile.js.map +1 -1
- package/remote/copyToRemote.d.ts +125 -0
- package/remote/copyToRemote.js +134 -0
- package/remote/copyToRemote.js.map +1 -0
- package/remote/index.d.ts +10 -2
- package/remote/index.js +19 -10
- package/remote/index.js.map +1 -1
- package/types/enums/index.d.ts +3 -0
- package/types/enums/index.js +11 -0
- package/types/enums/index.js.map +1 -0
- package/types/enums/local/index.d.ts +19 -0
- package/types/enums/local/index.js +24 -0
- package/types/enums/local/index.js.map +1 -0
- package/types/enums/remote/index.d.ts +19 -0
- package/types/enums/remote/index.js +24 -0
- package/types/enums/remote/index.js.map +1 -0
- package/types/index.d.ts +2 -1
- package/types/index.js +4 -2
- package/types/index.js.map +1 -1
- package/types/input.d.ts +70 -1
- package/types/input.js +13 -3
- package/types/input.js.map +1 -1
- package/types/output.d.ts +70 -1
- package/types/output.js +12 -3
- package/types/output.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -2
- package/utilities.js.map +1 -1
- package/package.json.bak +0 -16
package/remote/copyFile.js
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.CopyFile = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const
|
|
7
|
+
const inputs = require("../types/input");
|
|
8
8
|
const utilities = require("../utilities");
|
|
9
9
|
/**
|
|
10
10
|
* Copy a local file to a remote host.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.
|
|
11
13
|
*/
|
|
12
14
|
class CopyFile extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing CopyFile resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name, id, opts) {
|
|
24
|
+
pulumi.log.warn("CopyFile is deprecated: This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.");
|
|
25
|
+
return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns true if the given object is an instance of CopyFile. This is designed to work even
|
|
29
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
30
|
+
*/
|
|
31
|
+
static isInstance(obj) {
|
|
32
|
+
if (obj === undefined || obj === null) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return obj['__pulumiType'] === CopyFile.__pulumiType;
|
|
36
|
+
}
|
|
13
37
|
/**
|
|
14
38
|
* Create a CopyFile resource with the given unique name, arguments, and options.
|
|
15
39
|
*
|
|
@@ -17,7 +41,9 @@ class CopyFile extends pulumi.CustomResource {
|
|
|
17
41
|
* @param args The arguments to use to populate this resource's properties.
|
|
18
42
|
* @param opts A bag of options that control this resource's behavior.
|
|
19
43
|
*/
|
|
44
|
+
/** @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead. */
|
|
20
45
|
constructor(name, args, opts) {
|
|
46
|
+
pulumi.log.warn("CopyFile is deprecated: This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.");
|
|
21
47
|
let resourceInputs = {};
|
|
22
48
|
opts = opts || {};
|
|
23
49
|
if (!opts.id) {
|
|
@@ -30,41 +56,22 @@ class CopyFile extends pulumi.CustomResource {
|
|
|
30
56
|
if ((!args || args.remotePath === undefined) && !opts.urn) {
|
|
31
57
|
throw new Error("Missing required property 'remotePath'");
|
|
32
58
|
}
|
|
33
|
-
resourceInputs["connection"] = args ? (args.connection ? pulumi.output(args.connection).apply(
|
|
59
|
+
resourceInputs["connection"] = (args === null || args === void 0 ? void 0 : args.connection) ? pulumi.secret((args.connection ? pulumi.output(args.connection).apply(inputs.remote.connectionArgsProvideDefaults) : undefined)) : undefined;
|
|
34
60
|
resourceInputs["localPath"] = args ? args.localPath : undefined;
|
|
35
61
|
resourceInputs["remotePath"] = args ? args.remotePath : undefined;
|
|
62
|
+
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
36
63
|
}
|
|
37
64
|
else {
|
|
38
65
|
resourceInputs["connection"] = undefined /*out*/;
|
|
39
66
|
resourceInputs["localPath"] = undefined /*out*/;
|
|
40
67
|
resourceInputs["remotePath"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["triggers"] = undefined /*out*/;
|
|
41
69
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
70
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
71
|
+
const secretOpts = { additionalSecretOutputs: ["connection"] };
|
|
72
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
45
73
|
super(CopyFile.__pulumiType, name, resourceInputs, opts);
|
|
46
74
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Get an existing CopyFile resource's state with the given name, ID, and optional extra
|
|
49
|
-
* properties used to qualify the lookup.
|
|
50
|
-
*
|
|
51
|
-
* @param name The _unique_ name of the resulting resource.
|
|
52
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
-
*/
|
|
55
|
-
static get(name, id, opts) {
|
|
56
|
-
return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Returns true if the given object is an instance of CopyFile. This is designed to work even
|
|
60
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
|
-
*/
|
|
62
|
-
static isInstance(obj) {
|
|
63
|
-
if (obj === undefined || obj === null) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
return obj['__pulumiType'] === CopyFile.__pulumiType;
|
|
67
|
-
}
|
|
68
75
|
}
|
|
69
76
|
exports.CopyFile = CopyFile;
|
|
70
77
|
/** @internal */
|
package/remote/copyFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8IAA8I,CAAC,C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
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Copy an Asset or Archive to a remote host.
|
|
6
|
+
*
|
|
7
|
+
* ## Example usage
|
|
8
|
+
*
|
|
9
|
+
* This example copies a local directory to a remote host via SSH. For brevity, the remote server is assumed to exist, but it could also be provisioned in the same Pulumi program.
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import { remote, types } from "@pulumi/command";
|
|
14
|
+
* import * as fs from "fs";
|
|
15
|
+
* import * as os from "os";
|
|
16
|
+
* import * as path from "path";
|
|
17
|
+
*
|
|
18
|
+
* export = async () => {
|
|
19
|
+
* const config = new pulumi.Config();
|
|
20
|
+
*
|
|
21
|
+
* // Get the private key to connect to the server. If a key is
|
|
22
|
+
* // provided, use it, otherwise default to the standard id_rsa SSH key.
|
|
23
|
+
* const privateKeyBase64 = config.get("privateKeyBase64");
|
|
24
|
+
* const privateKey = privateKeyBase64 ?
|
|
25
|
+
* Buffer.from(privateKeyBase64, 'base64').toString('ascii') :
|
|
26
|
+
* fs.readFileSync(path.join(os.homedir(), ".ssh", "id_rsa")).toString("utf8");
|
|
27
|
+
*
|
|
28
|
+
* const serverPublicIp = config.require("serverPublicIp");
|
|
29
|
+
* const userName = config.require("userName");
|
|
30
|
+
*
|
|
31
|
+
* // The configuration of our SSH connection to the instance.
|
|
32
|
+
* const connection: types.input.remote.ConnectionArgs = {
|
|
33
|
+
* host: serverPublicIp,
|
|
34
|
+
* user: userName,
|
|
35
|
+
* privateKey: privateKey,
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* // Set up source and target of the remote copy.
|
|
39
|
+
* const from = config.require("payload")!;
|
|
40
|
+
* const archive = new pulumi.asset.FileArchive(from);
|
|
41
|
+
* const to = config.require("destDir")!;
|
|
42
|
+
*
|
|
43
|
+
* // Copy the files to the remote.
|
|
44
|
+
* const copy = new remote.CopyToRemote("copy", {
|
|
45
|
+
* connection,
|
|
46
|
+
* source: archive,
|
|
47
|
+
* remotePath: to,
|
|
48
|
+
* });
|
|
49
|
+
*
|
|
50
|
+
* // Verify that the expected files were copied to the remote.
|
|
51
|
+
* // We want to run this after each copy, i.e., when something changed,
|
|
52
|
+
* // so we use the asset to be copied as a trigger.
|
|
53
|
+
* const find = new remote.Command("ls", {
|
|
54
|
+
* connection,
|
|
55
|
+
* create: `find ${to}/${from} | sort`,
|
|
56
|
+
* triggers: [archive],
|
|
57
|
+
* }, { dependsOn: copy });
|
|
58
|
+
*
|
|
59
|
+
* return {
|
|
60
|
+
* remoteContents: find.stdout
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare class CopyToRemote extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing CopyToRemote resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
+
*/
|
|
74
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CopyToRemote;
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of CopyToRemote. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj: any): obj is CopyToRemote;
|
|
80
|
+
/**
|
|
81
|
+
* The parameters with which to connect to the remote host.
|
|
82
|
+
*/
|
|
83
|
+
readonly connection: pulumi.Output<outputs.remote.Connection>;
|
|
84
|
+
/**
|
|
85
|
+
* The destination path on the remote host. The last element of the path will be created if it doesn't exist but it's an error when additional elements don't exist. When the remote path is an existing directory, the source file or directory will be copied into that directory. When the source is a file and the remote path is an existing file, that file will be overwritten. When the source is a directory and the remote path an existing file, the copy will fail.
|
|
86
|
+
*/
|
|
87
|
+
readonly remotePath: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* An [asset or an archive](https://www.pulumi.com/docs/concepts/assets-archives/) to upload as the source of the copy. It must be path-based, i.e., be a `FileAsset` or a `FileArchive`. The item will be copied as-is; archives like .tgz will not be unpacked. Directories are copied recursively, overwriting existing files.
|
|
90
|
+
*/
|
|
91
|
+
readonly source: pulumi.Output<pulumi.asset.Asset | pulumi.asset.Archive>;
|
|
92
|
+
/**
|
|
93
|
+
* Trigger replacements on changes to this input.
|
|
94
|
+
*/
|
|
95
|
+
readonly triggers: pulumi.Output<any[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a CopyToRemote resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: CopyToRemoteArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The set of arguments for constructing a CopyToRemote resource.
|
|
107
|
+
*/
|
|
108
|
+
export interface CopyToRemoteArgs {
|
|
109
|
+
/**
|
|
110
|
+
* The parameters with which to connect to the remote host.
|
|
111
|
+
*/
|
|
112
|
+
connection: pulumi.Input<inputs.remote.ConnectionArgs>;
|
|
113
|
+
/**
|
|
114
|
+
* The destination path on the remote host. The last element of the path will be created if it doesn't exist but it's an error when additional elements don't exist. When the remote path is an existing directory, the source file or directory will be copied into that directory. When the source is a file and the remote path is an existing file, that file will be overwritten. When the source is a directory and the remote path an existing file, the copy will fail.
|
|
115
|
+
*/
|
|
116
|
+
remotePath: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* An [asset or an archive](https://www.pulumi.com/docs/concepts/assets-archives/) to upload as the source of the copy. It must be path-based, i.e., be a `FileAsset` or a `FileArchive`. The item will be copied as-is; archives like .tgz will not be unpacked. Directories are copied recursively, overwriting existing files.
|
|
119
|
+
*/
|
|
120
|
+
source: pulumi.Input<pulumi.asset.Asset | pulumi.asset.Archive>;
|
|
121
|
+
/**
|
|
122
|
+
* Trigger replacements on changes to this input.
|
|
123
|
+
*/
|
|
124
|
+
triggers?: pulumi.Input<any[]>;
|
|
125
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CopyToRemote = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const inputs = require("../types/input");
|
|
8
|
+
const utilities = require("../utilities");
|
|
9
|
+
/**
|
|
10
|
+
* Copy an Asset or Archive to a remote host.
|
|
11
|
+
*
|
|
12
|
+
* ## Example usage
|
|
13
|
+
*
|
|
14
|
+
* This example copies a local directory to a remote host via SSH. For brevity, the remote server is assumed to exist, but it could also be provisioned in the same Pulumi program.
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import { remote, types } from "@pulumi/command";
|
|
19
|
+
* import * as fs from "fs";
|
|
20
|
+
* import * as os from "os";
|
|
21
|
+
* import * as path from "path";
|
|
22
|
+
*
|
|
23
|
+
* export = async () => {
|
|
24
|
+
* const config = new pulumi.Config();
|
|
25
|
+
*
|
|
26
|
+
* // Get the private key to connect to the server. If a key is
|
|
27
|
+
* // provided, use it, otherwise default to the standard id_rsa SSH key.
|
|
28
|
+
* const privateKeyBase64 = config.get("privateKeyBase64");
|
|
29
|
+
* const privateKey = privateKeyBase64 ?
|
|
30
|
+
* Buffer.from(privateKeyBase64, 'base64').toString('ascii') :
|
|
31
|
+
* fs.readFileSync(path.join(os.homedir(), ".ssh", "id_rsa")).toString("utf8");
|
|
32
|
+
*
|
|
33
|
+
* const serverPublicIp = config.require("serverPublicIp");
|
|
34
|
+
* const userName = config.require("userName");
|
|
35
|
+
*
|
|
36
|
+
* // The configuration of our SSH connection to the instance.
|
|
37
|
+
* const connection: types.input.remote.ConnectionArgs = {
|
|
38
|
+
* host: serverPublicIp,
|
|
39
|
+
* user: userName,
|
|
40
|
+
* privateKey: privateKey,
|
|
41
|
+
* };
|
|
42
|
+
*
|
|
43
|
+
* // Set up source and target of the remote copy.
|
|
44
|
+
* const from = config.require("payload")!;
|
|
45
|
+
* const archive = new pulumi.asset.FileArchive(from);
|
|
46
|
+
* const to = config.require("destDir")!;
|
|
47
|
+
*
|
|
48
|
+
* // Copy the files to the remote.
|
|
49
|
+
* const copy = new remote.CopyToRemote("copy", {
|
|
50
|
+
* connection,
|
|
51
|
+
* source: archive,
|
|
52
|
+
* remotePath: to,
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* // Verify that the expected files were copied to the remote.
|
|
56
|
+
* // We want to run this after each copy, i.e., when something changed,
|
|
57
|
+
* // so we use the asset to be copied as a trigger.
|
|
58
|
+
* const find = new remote.Command("ls", {
|
|
59
|
+
* connection,
|
|
60
|
+
* create: `find ${to}/${from} | sort`,
|
|
61
|
+
* triggers: [archive],
|
|
62
|
+
* }, { dependsOn: copy });
|
|
63
|
+
*
|
|
64
|
+
* return {
|
|
65
|
+
* remoteContents: find.stdout
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
class CopyToRemote extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing CopyToRemote resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, opts) {
|
|
80
|
+
return new CopyToRemote(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of CopyToRemote. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === CopyToRemote.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create a CopyToRemote resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name, args, opts) {
|
|
100
|
+
let resourceInputs = {};
|
|
101
|
+
opts = opts || {};
|
|
102
|
+
if (!opts.id) {
|
|
103
|
+
if ((!args || args.connection === undefined) && !opts.urn) {
|
|
104
|
+
throw new Error("Missing required property 'connection'");
|
|
105
|
+
}
|
|
106
|
+
if ((!args || args.remotePath === undefined) && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'remotePath'");
|
|
108
|
+
}
|
|
109
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'source'");
|
|
111
|
+
}
|
|
112
|
+
resourceInputs["connection"] = (args === null || args === void 0 ? void 0 : args.connection) ? pulumi.secret((args.connection ? pulumi.output(args.connection).apply(inputs.remote.connectionArgsProvideDefaults) : undefined)) : undefined;
|
|
113
|
+
resourceInputs["remotePath"] = args ? args.remotePath : undefined;
|
|
114
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
115
|
+
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
resourceInputs["connection"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["remotePath"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["source"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["triggers"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
const secretOpts = { additionalSecretOutputs: ["connection"] };
|
|
125
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
126
|
+
const replaceOnChanges = { replaceOnChanges: ["triggers[*]"] };
|
|
127
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
128
|
+
super(CopyToRemote.__pulumiType, name, resourceInputs, opts);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.CopyToRemote = CopyToRemote;
|
|
132
|
+
/** @internal */
|
|
133
|
+
CopyToRemote.__pulumiType = 'command:remote:CopyToRemote';
|
|
134
|
+
//# sourceMappingURL=copyToRemote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyToRemote.js","sourceRoot":"","sources":["../../remote/copyToRemote.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CA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export
|
|
2
|
-
export
|
|
1
|
+
export { CommandArgs } from "./command";
|
|
2
|
+
export type Command = import("./command").Command;
|
|
3
|
+
export declare const Command: typeof import("./command").Command;
|
|
4
|
+
export { CopyFileArgs } from "./copyFile";
|
|
5
|
+
export type CopyFile = import("./copyFile").CopyFile;
|
|
6
|
+
export declare const CopyFile: typeof import("./copyFile").CopyFile;
|
|
7
|
+
export { CopyToRemoteArgs } from "./copyToRemote";
|
|
8
|
+
export type CopyToRemote = import("./copyToRemote").CopyToRemote;
|
|
9
|
+
export declare const CopyToRemote: typeof import("./copyToRemote").CopyToRemote;
|
|
10
|
+
export * from "../types/enums/remote";
|
package/remote/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
7
11
|
}) : (function(o, m, k, k2) {
|
|
8
12
|
if (k2 === undefined) k2 = k;
|
|
9
13
|
o[k2] = m[k];
|
|
@@ -12,22 +16,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
17
|
};
|
|
14
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.CopyToRemote = exports.CopyFile = exports.Command = void 0;
|
|
15
20
|
const pulumi = require("@pulumi/pulumi");
|
|
16
21
|
const utilities = require("../utilities");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
exports.Command = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["Command"], () => require("./command"));
|
|
24
|
+
exports.CopyFile = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["CopyFile"], () => require("./copyFile"));
|
|
26
|
+
exports.CopyToRemote = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["CopyToRemote"], () => require("./copyToRemote"));
|
|
28
|
+
// Export enums:
|
|
29
|
+
__exportStar(require("../types/enums/remote"), exports);
|
|
23
30
|
const _module = {
|
|
24
31
|
version: utilities.getVersion(),
|
|
25
32
|
construct: (name, type, urn) => {
|
|
26
33
|
switch (type) {
|
|
27
34
|
case "command:remote:Command":
|
|
28
|
-
return new
|
|
35
|
+
return new exports.Command(name, undefined, { urn });
|
|
29
36
|
case "command:remote:CopyFile":
|
|
30
|
-
return new
|
|
37
|
+
return new exports.CopyFile(name, undefined, { urn });
|
|
38
|
+
case "command:remote:CopyToRemote":
|
|
39
|
+
return new exports.CopyToRemote(name, undefined, { urn });
|
|
31
40
|
default:
|
|
32
41
|
throw new Error(`unknown resource type ${type}`);
|
|
33
42
|
}
|
package/remote/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../remote/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../remote/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAG/E,gBAAgB;AAChB,wDAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,wBAAwB;gBACzB,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,yBAAyB;gBAC1B,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.remote = exports.local = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const local = require("./local");
|
|
8
|
+
exports.local = local;
|
|
9
|
+
const remote = require("./remote");
|
|
10
|
+
exports.remote = remote;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const Logging: {
|
|
2
|
+
/**
|
|
3
|
+
* Capture stdout in logs but not stderr
|
|
4
|
+
*/
|
|
5
|
+
readonly Stdout: "stdout";
|
|
6
|
+
/**
|
|
7
|
+
* Capture stderr in logs but not stdout
|
|
8
|
+
*/
|
|
9
|
+
readonly Stderr: "stderr";
|
|
10
|
+
/**
|
|
11
|
+
* Capture stdout and stderr in logs
|
|
12
|
+
*/
|
|
13
|
+
readonly StdoutAndStderr: "stdoutAndStderr";
|
|
14
|
+
/**
|
|
15
|
+
* Capture no logs
|
|
16
|
+
*/
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
};
|
|
19
|
+
export type Logging = (typeof Logging)[keyof typeof Logging];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Logging = void 0;
|
|
6
|
+
exports.Logging = {
|
|
7
|
+
/**
|
|
8
|
+
* Capture stdout in logs but not stderr
|
|
9
|
+
*/
|
|
10
|
+
Stdout: "stdout",
|
|
11
|
+
/**
|
|
12
|
+
* Capture stderr in logs but not stdout
|
|
13
|
+
*/
|
|
14
|
+
Stderr: "stderr",
|
|
15
|
+
/**
|
|
16
|
+
* Capture stdout and stderr in logs
|
|
17
|
+
*/
|
|
18
|
+
StdoutAndStderr: "stdoutAndStderr",
|
|
19
|
+
/**
|
|
20
|
+
* Capture no logs
|
|
21
|
+
*/
|
|
22
|
+
None: "none",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/local/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,OAAO,GAAG;IACnB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const Logging: {
|
|
2
|
+
/**
|
|
3
|
+
* Capture stdout in logs but not stderr
|
|
4
|
+
*/
|
|
5
|
+
readonly Stdout: "stdout";
|
|
6
|
+
/**
|
|
7
|
+
* Capture stderr in logs but not stdout
|
|
8
|
+
*/
|
|
9
|
+
readonly Stderr: "stderr";
|
|
10
|
+
/**
|
|
11
|
+
* Capture stdout and stderr in logs
|
|
12
|
+
*/
|
|
13
|
+
readonly StdoutAndStderr: "stdoutAndStderr";
|
|
14
|
+
/**
|
|
15
|
+
* Capture no logs
|
|
16
|
+
*/
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
};
|
|
19
|
+
export type Logging = (typeof Logging)[keyof typeof Logging];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Logging = void 0;
|
|
6
|
+
exports.Logging = {
|
|
7
|
+
/**
|
|
8
|
+
* Capture stdout in logs but not stderr
|
|
9
|
+
*/
|
|
10
|
+
Stdout: "stdout",
|
|
11
|
+
/**
|
|
12
|
+
* Capture stderr in logs but not stdout
|
|
13
|
+
*/
|
|
14
|
+
Stderr: "stderr",
|
|
15
|
+
/**
|
|
16
|
+
* Capture stdout and stderr in logs
|
|
17
|
+
*/
|
|
18
|
+
StdoutAndStderr: "stdoutAndStderr",
|
|
19
|
+
/**
|
|
20
|
+
* Capture no logs
|
|
21
|
+
*/
|
|
22
|
+
None: "none",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/remote/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,OAAO,GAAG;IACnB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC"}
|
package/types/index.d.ts
CHANGED
package/types/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.output = exports.input = void 0;
|
|
5
|
+
exports.output = exports.input = exports.enums = void 0;
|
|
6
6
|
// Export sub-modules:
|
|
7
|
+
const enums = require("./enums");
|
|
8
|
+
exports.enums = enums;
|
|
7
9
|
const input = require("./input");
|
|
8
10
|
exports.input = input;
|
|
9
11
|
const output = require("./output");
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAK7B,sBAAK;AAJT,iCAAiC;AAK7B,sBAAK;AAJT,mCAAmC;AAK/B,wBAAM"}
|