mirror of https://github.com/pulumi/pulumi.git
14 lines
332 B
JavaScript
14 lines
332 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"));
|