mirror of https://github.com/pulumi/pulumi.git
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
// This tests simple creation of assets.
|
|
|
|
let pulumi = require("../../../../../");
|
|
|
|
class FileResource extends pulumi.CustomResource {
|
|
constructor(name, data) {
|
|
super("test:index:FileResource", name, {
|
|
"data": data,
|
|
});
|
|
}
|
|
}
|
|
|
|
new FileResource("file1", new pulumi.asset.FileAsset("./testdata.txt"));
|
|
|